Domain Error
class DomainError(message: String?, cause: Throwable?, contexts: Array<ExecutionContext>, expectedDomain: DomainError.Expected, culprit: Term, extraData: Term?) : PrologError
Content copied to clipboard
The domain error occurs when something has the correct type but the value is not admissible
Parameters
message
the detail message string.
cause
the cause of this exception.
contexts
a stack of contexts localising the exception
expectedDomain
The expected domain, that wouldn't have raised the error
culprit
The value not respecting expectedDomain
extraData
The possible extra data to be carried with the error
Constructors
DomainError
Link copied to clipboard
fun DomainError(message: String? = null, cause: Throwable? = null, context: ExecutionContext, expectedDomain: DomainError.Expected, actualValue: Term, extraData: Term? = null)
Content copied to clipboard
DomainError
Link copied to clipboard
fun DomainError(message: String? = null, cause: Throwable? = null, contexts: Array<ExecutionContext>, expectedDomain: DomainError.Expected, culprit: Term, extraData: Term? = null)
Content copied to clipboard
the detail message string.
Types
Functions
pushContext
Link copied to clipboard
updateContext
Link copied to clipboard
open override fun updateContext(newContext: ExecutionContext, index: Int): DomainError
Content copied to clipboard
updateLastContext
Link copied to clipboard
open override fun updateLastContext(newContext: ExecutionContext): DomainError
Content copied to clipboard
Properties
context
Link copied to clipboard
contexts
Link copied to clipboard
culprit
Link copied to clipboard
errorStruct
Link copied to clipboard
expectedDomain
Link copied to clipboard
prologStackTrace
Link copied to clipboard