ISO error handling (Paulo Moura's suite).

This commit is contained in:
Vítor Santos Costa 2016-02-18 19:46:03 +00:00
parent 56024b2a2c
commit c381dbe318

View File

@ -1,10 +1,12 @@
///
/// @file YapErrors.h
///
/// @adddtogroup YapError
///
/// The file YapErrors.h contains a list with all the error classes known internally to the YAP system.
/// The file YapErrors.h contains a list with all the error classes known
/// internally to the YAP system.
BEGIN_ERROR_CLASSES()
@ -13,7 +15,7 @@ ECLASS(NO_ERROR, "no_error", 0)
/// bad domain, first argument often is the predicate.
ECLASS(DOMAIN_ERROR, "domain_error", 2)
/// bad arithmetic
ECLASS(EVALUATION_ERROR, "evaluation_error", 2)
ECLASS(EVALUATION_ERROR, "evaluation_error", 1)
/// missing object (I/O mostly)
ECLASS(EXISTENCE_ERROR, "existence_error", 2)
/// should be bound