RuntimeError

class RuntimeError(val error: ErrorSpec, message: String, cause: Throwable? = null) : RuntimeException(source)

Exception wrapper for io.github.smyrgeorge.ktkit.api.error.impl.SystemError instances.

Used to convert structured errors into throwable exceptions.

Constructors

Link copied to clipboard
constructor(error: ErrorSpec, message: String, cause: Throwable? = null)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard

The structured error being wrapped

Link copied to clipboard
expect open val message: String?