YAPError¶
take information on a Prolog error:
Public Function:¶
1. YAPError::YAPError(): : wraps the default error descriptor
1. YAPError::YAPError(yap_error_descriptor_t *des): : if des != nullptr, wrap a preexisting error descriptor; otherwise, generate a new one
1. YAPError::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
error handler object with initial data when receiving the error term
1. yap_error_number YAPError::getID(): : we just know the error number exact error ID
1. yap_error_class_number YAPError::getErrorClass(): : class of error
1. const char * YAPError::getFile(): : where in the code things happened;
1. Int YAPError::getLine(): : predicate things happened;
1. std::string YAPError::text(): : the term that caused the bug
text describing the Error