PrologError

abstract class PrologError(message: String?, cause: Throwable?, contexts: Array<ExecutionContext>, type: Struct, extraData: Term?) : TuPrologRuntimeException

Base class for Standard Prolog Errors and possibly other custom Primitive errors

Author

Giovanni

Enrico

Parameters

message

the detail message string.

cause

the cause of this exception.

contexts

a stack of contexts localising the exception

type

The error type structure

extraData

The possible extra data to be carried with the error

Constructors

PrologError
Link copied to clipboard
common
fun PrologError(message: String? = null, cause: Throwable? = null, context: ExecutionContext, type: Struct, extraData: Term? = null)
PrologError
Link copied to clipboard
common
fun PrologError(cause: Throwable?, context: ExecutionContext, type: Struct, extraData: Term? = null)
PrologError
Link copied to clipboard
common
fun PrologError(message: String? = null, cause: Throwable? = null, contexts: Array<ExecutionContext>, type: Struct, extraData: Term? = null)
the detail message string.

Types

Companion
Link copied to clipboard
common
object Companion

Functions

pushContext
Link copied to clipboard
common
abstract override fun pushContext(newContext: ExecutionContext): PrologError
toString
Link copied to clipboard
common
open override fun toString(): String
updateContext
Link copied to clipboard
common
abstract override fun updateContext(newContext: ExecutionContext, index: Int): PrologError
Creates a new exception instance with the context with in position index updated to newContext.
updateLastContext
Link copied to clipboard
common
abstract override fun updateLastContext(newContext: ExecutionContext): PrologError

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
errorStruct
Link copied to clipboard
common
val errorStruct: Struct
The error Struct as described in Prolog standard: error(error_type, error_extra)
extraData
Link copied to clipboard
common
open val extraData: Term? = null
The possible extra data to be carried with the error
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
type
Link copied to clipboard
common
open val type: Struct
The error type structure

Inheritors

DomainError
Link copied to clipboard
EvaluationError
Link copied to clipboard
ExistenceError
Link copied to clipboard
InstantiationError
Link copied to clipboard
MessageError
Link copied to clipboard
PermissionError
Link copied to clipboard
RepresentationError
Link copied to clipboard
SyntaxError
Link copied to clipboard
SystemError
Link copied to clipboard
TypeError
Link copied to clipboard