HaltException

fun HaltException(message: String? = null, cause: Throwable? = null, context: ExecutionContext, exitStatus: Int = 0)
fun HaltException(cause: Throwable?, context: ExecutionContext, exitStatus: Int = 0)
fun HaltException(message: String? = null, cause: Throwable? = null, contexts: Array<ExecutionContext>, exitStatus: Int = 0)

Parameters

message

the detail message string.

cause

the cause of this exception.

contexts

a stack of contexts localising the exception

exitStatus

The integer code representing the exit status code; it defaults to 0