SystemError

class SystemError: PrologError

The system error occurs when an internal problem occurred and if not caught, it will halt inferential machine

Constructors

<init>

constructor(message: String?, cause: Throwable?, context: ExecutionContext, extraData: Term?)

The system error occurs when an internal problem occurred and if not caught, it will halt inferential machine

Parameters

Name Description
message: String?

the detail message string.

cause: Throwable?

the cause of this exception.

context: ExecutionContext

The current context at exception creation

extraData: Term?

The possible extra data to be carried with the error

Methods

updateContext

fun updateContext(newContext: ExecutionContext): PrologError

Creates a new exception instance with context field updated to newContext.

Subclasses should override this method and return the correct instance.

Parameters

Name Description
newContext: ExecutionContext

ReturnValue

Name Description
PrologError

CompanionObject

SystemError

class SystemError: PrologError

The system error occurs when an internal problem occurred and if not caught, it will halt inferential machine

Fields

Name Description
const typeFunctor: String

The system error Struct functor

Methods

forUncaughtException

fun forUncaughtException(context: ExecutionContext, exception: Term): SystemError

Parameters

Name Description
context: ExecutionContext
exception: Term

ReturnValue

Name Description
SystemError

forUncaughtException

fun forUncaughtException(context: ExecutionContext, exception: PrologError): SystemError

Parameters

Name Description
context: ExecutionContext
exception: PrologError

ReturnValue

Name Description
SystemError