PermissionError

class PermissionError(message: String?, cause: Throwable?, contexts: Array<ExecutionContext>, operation: PermissionError.Operation, permission: PermissionError.Permission, culprit: Term, extraData: Term?) : PrologError

A permission error occurs when an attempt to perform a prohibited operation is made

Parameters

message

the detail message string.

cause

the cause of this exception.

contexts

a stack of contexts localising the exception

operation

the operation which caused the error

permission

the type of the tried permission

extraData

the possible extra data to be carried with the error

Constructors

PermissionError
Link copied to clipboard
common
fun PermissionError(message: String? = null, cause: Throwable? = null, context: ExecutionContext, operation: PermissionError.Operation, permission: PermissionError.Permission, culprit: Term, extraData: Term? = null)
PermissionError
Link copied to clipboard
common
fun PermissionError(message: String? = null, cause: Throwable? = null, contexts: Array<ExecutionContext>, operation: PermissionError.Operation, permission: PermissionError.Permission, culprit: Term, extraData: Term? = null)
the detail message string.

Types

Companion
Link copied to clipboard
common
object Companion
Operation
Link copied to clipboard
common
enum Operation : Enum<PermissionError.Operation> , ToTermConvertible
A class describing the operation which caused the error
Permission
Link copied to clipboard
common
enum Permission : Enum<PermissionError.Permission> , ToTermConvertible
A class describing the type of the tried permission

Functions

pushContext
Link copied to clipboard
common
open override fun pushContext(newContext: ExecutionContext): PermissionError
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): PermissionError
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): PermissionError

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
culprit
Link copied to clipboard
common
val culprit: Term
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?
operation
Link copied to clipboard
common
val operation: PermissionError.Operation
the operation which caused the error
permission
Link copied to clipboard
common
val permission: PermissionError.Permission
the type of the tried permission
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