ErrorUtils

object ErrorUtils

Prolog error handling utilities

Author

Enrico

Properties

Link copied to clipboard

The functor error used to wrap errors generated by built-ins

Functions

Link copied to clipboard
fun errorStructOf(errorDescription: Struct, customErrorData: Term = Atom.of("")): Struct

The error struct, with ERROR_FUNCTOR, that can be used in throw/1 predicate; It will create a struct in the form of error(errorDescription, customErrorData)