ISO error handling (Paulo Moura's suite).
This commit is contained in:
parent
56024b2a2c
commit
c381dbe318
@ -1,10 +1,12 @@
|
|||||||
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// @file YapErrors.h
|
/// @file YapErrors.h
|
||||||
///
|
///
|
||||||
/// @adddtogroup YapError
|
/// @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()
|
BEGIN_ERROR_CLASSES()
|
||||||
|
|
||||||
@ -13,7 +15,7 @@ ECLASS(NO_ERROR, "no_error", 0)
|
|||||||
/// bad domain, first argument often is the predicate.
|
/// bad domain, first argument often is the predicate.
|
||||||
ECLASS(DOMAIN_ERROR, "domain_error", 2)
|
ECLASS(DOMAIN_ERROR, "domain_error", 2)
|
||||||
/// bad arithmetic
|
/// bad arithmetic
|
||||||
ECLASS(EVALUATION_ERROR, "evaluation_error", 2)
|
ECLASS(EVALUATION_ERROR, "evaluation_error", 1)
|
||||||
/// missing object (I/O mostly)
|
/// missing object (I/O mostly)
|
||||||
ECLASS(EXISTENCE_ERROR, "existence_error", 2)
|
ECLASS(EXISTENCE_ERROR, "existence_error", 2)
|
||||||
/// should be bound
|
/// should be bound
|
||||||
|
Reference in New Issue
Block a user