TuPrologRuntimeException

open class TuPrologRuntimeException(message: String?, cause: Throwable?, contexts: Array<ExecutionContext>) : TuPrologException

An exception that could occur during Solver execution

Parameters

message

the detail message string.

cause

the cause of this exception.

contexts

a stack of contexts localising the exception

Constructors

TuPrologRuntimeException
Link copied to clipboard
common
fun TuPrologRuntimeException(message: String? = null, cause: Throwable? = null, context: ExecutionContext, vararg otherContexts: ExecutionContext)
TuPrologRuntimeException
Link copied to clipboard
common
fun TuPrologRuntimeException(cause: Throwable?, context: ExecutionContext)
TuPrologRuntimeException
Link copied to clipboard
common
fun TuPrologRuntimeException(message: String? = null, cause: Throwable? = null, contexts: Array<ExecutionContext>)
the detail message string.

Functions

pushContext
Link copied to clipboard
common
open fun pushContext(newContext: ExecutionContext): TuPrologRuntimeException
updateContext
Link copied to clipboard
common
open fun updateContext(newContext: ExecutionContext, index: Int = 0): TuPrologRuntimeException
Creates a new exception instance with the context with in position index updated to newContext.
updateLastContext
Link copied to clipboard
common
open fun updateLastContext(newContext: ExecutionContext): TuPrologRuntimeException

Properties

cause
Link copied to clipboard
common
open override val cause: Throwable?
context
Link copied to clipboard
common
val context: ExecutionContext
contexts
Link copied to clipboard
common
val contexts: Array<ExecutionContext>
a stack of contexts localising the exception
message
Link copied to clipboard
common
open override val message: String?
prologStackTrace
Link copied to clipboard
common
val prologStackTrace: List<Struct>
The exception stacktrace; shorthand for context.prologStackTrace

Inheritors

HaltException
Link copied to clipboard
PrologError
Link copied to clipboard
PrologWarning
Link copied to clipboard
TimeOutException
Link copied to clipboard