HaltException

class HaltException(val exitStatus: Int = 0, message: String? = "Resolution has been halted with exit code ", cause: Throwable? = null, 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
constructor(exitStatus: Int = 0, message: String? = "Resolution has been halted with exit code ", cause: Throwable? = null, contexts: Array<ExecutionContext>)
constructor(exitStatus: Int = 0, message: String? = "Resolution has been halted with exit code ", cause: Throwable? = null, context: ExecutionContext)
constructor(exitStatus: Int = 0, cause: Throwable?, context: ExecutionContext)

Properties

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

The exception stacktrace; shorthand for context.prologStackTrace

Link copied to clipboard
expect open val message: String?

Functions

Link copied to clipboard
open override fun pushContext(newContext: ExecutionContext): HaltException
Link copied to clipboard
open override fun updateContext(newContext: ExecutionContext, index: Int = 0): 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