MessageError

class MessageError: PrologError

The MessageError is used whenever no other PrologError instance is suitable for representing the error

Fields

Name Description
val content: Term

The content of this message 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

MessageError

class MessageError: PrologError

The MessageError is used whenever no other PrologError instance is suitable for representing the error

Fields

Name Description
const typeFunctor: String

The message error Struct functor

Methods

of

fun of(content: Term, context: ExecutionContext, cause: Throwable?): MessageError

Factory method to create a MessageError

Parameters

Name Description
content: Term
context: ExecutionContext
cause: Throwable?

ReturnValue

Name Description
MessageError