Halt Exception
class HaltException( val exitStatus: Int = 0, message: String? = "Resolution has been halted with exit code ", cause: Throwable? = null, val contexts: Array<ExecutionContext>) : ResolutionException
Content copied to clipboard
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
exit Status
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)
Content copied to clipboard
Link copied to clipboard
fun HaltException( exitStatus: Int = 0, cause: Throwable?, context: ExecutionContext)
Content copied to clipboard
Link copied to clipboard
fun HaltException( exitStatus: Int = 0, message: String? = "Resolution has been halted with exit code ", cause: Throwable? = null, contexts: Array<ExecutionContext>)
Content copied to clipboard
Functions
Link copied to clipboard
open override fun pushContext(newContext: ExecutionContext): HaltException
Content copied to clipboard
Link copied to clipboard
open override fun updateContext(newContext: ExecutionContext, index: Int): HaltException
Content copied to clipboard
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
Content copied to clipboard