26class X_API YAPPPredicate;
38 info = LOCAL_ActiveError;
64 YAPError(
const char * file,
const char *
function,
int lineno,
65 yap_error_number
id, YAP_Term culprit,
const char * txt) {
71#define SOURCE() __FILE__, __FUNCTION__, __LINE__
75 yap_error_number
getID() {
return info->errorNo; };
78 return Yap_errorClass(info->errorNo);
81 const char *
getFile() {
return info->errorFile; };
83 Int
getLine() {
return info->errorLine; };
bool Yap_MkErrorRecord(yap_error_descriptor_t *r, const char *file, const char *function, int lineno, yap_error_number type, Term where, const char *s)
complete an error descriptor:
const char * getFile()
where in the code things happened;
YAPError(yap_error_descriptor_t *des)
if des != nullptr, wrap a preexisting error descriptor; otherwise, generate a new one
YAPError(const char *file, const char *function, int lineno, yap_error_number id, YAP_Term culprit, const char *txt)
error handler object with initial data when receiving the error term
yap_error_number getID()
we just know the error number exact error ID
yap_error_class_number getErrorClass()
class of error
YAPError()
wraps the default error descriptor
Int getLine()
predicate things happened;
take information on a Prolog error:
all we need to know about an error/throw