commonMain.exception.KspoonParseException.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kspoon-korlibs Show documentation
Show all versions of kspoon-korlibs Show documentation
Annotation based HTML to Kotlin class parser with KMP support, jspoon successor
The newest version!
package dev.burnoo.kspoon.exception
/**
* Exception thrown by Kspoon on errors.
*/
public class KspoonParseException(
/**
* Message of the error. Contains full HTML selector path for parsing.
*/
override val message: String?,
/**
* Cause of the exception.
*/
override val cause: Throwable? = null,
) : IllegalStateException()
internal fun kspoonError(message: String?, cause: Throwable? = null): Nothing {
throw KspoonParseException(message, cause)
}