RepresentationError

class RepresentationError(message: String?, cause: Throwable?, contexts: Array<ExecutionContext>, limit: RepresentationError.Limit, extraData: Term?) : PrologError

A representation error occurs when an implementation limit has been breached

Parameters

message

the detail message string.

cause

the cause of this exception.

contexts

a stack of contexts localising the exception

limit

the name of the reached limit

extraData

the possible extra data to be carried with the error

Constructors

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

Types

Companion
Link copied to clipboard
common
object Companion
Limit
Link copied to clipboard
common
enum Limit : Enum<RepresentationError.Limit> , ToTermConvertible
Names of possible limits

Functions

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

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
limit
Link copied to clipboard
common
val limit: RepresentationError.Limit
the name of the reached limit
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 override val type: Struct
The error type structure