HaltException

class HaltException(    val exitStatus: Int = 0,     message: String? = "Resolution has been halted with exit code ",     cause: Throwable? = null,     val contexts: Array<ExecutionContext>) : ResolutionException

An exception thrown if there are problems during state machine execution, and solution process should be halted

Author

Enrico

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

Constructors

Link copied to clipboard
fun HaltException(    exitStatus: Int = 0,     message: String? = "Resolution has been halted with exit code ",     cause: Throwable? = null,     context: ExecutionContext)
Link copied to clipboard
fun HaltException(    exitStatus: Int = 0,     cause: Throwable?,     context: ExecutionContext)
Link copied to clipboard
fun HaltException(    exitStatus: Int = 0,     message: String? = "Resolution has been halted with exit code ",     cause: Throwable? = null,     contexts: Array<ExecutionContext>)

Functions

Link copied to clipboard
open override fun pushContext(newContext: ExecutionContext): HaltException
Link copied to clipboard
open override fun updateContext(newContext: ExecutionContext, index: Int): HaltException

Creates a new exception instance with the context with in position index updated to newContext. Subclasses should override this method and return the correct instance.

Link copied to clipboard
open override fun updateLastContext(newContext: ExecutionContext): HaltException

Properties

Link copied to clipboard
val context: ExecutionContext
Link copied to clipboard
val contexts: Array<ExecutionContext>
Link copied to clipboard
val exitStatus: Int = 0
Link copied to clipboard
val logicStackTrace: List<<ERROR CLASS>>

The exception stacktrace; shorthand for context.prologStackTrace