PrologError

fun PrologError(message: String? = null, cause: Throwable? = null, context: ExecutionContext, type: Struct, extraData: Term? = null)
fun PrologError(cause: Throwable?, context: ExecutionContext, type: Struct, extraData: Term? = null)
fun PrologError(message: String? = null, cause: Throwable? = null, contexts: Array<ExecutionContext>, type: Struct, extraData: Term? = null)

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