YAP 7.1.0
Exception Descriptor Manipulation

Manipulate error/throw descriptors. More...

Detailed Description

Manipulate error/throw descriptors.

These routines do useful stuff on error descriptors

Notice that if the argument is an error descriptor, and you pass NULL, they always expect it to refer the current Active error descriptor

Function Documentation

◆ event()

yap_error_descriptor_t * event ( Term  t,
yap_error_descriptor_t i 
)

Definition at line 1597 of file errors.c.

◆ Yap_errorName()

char * Yap_errorName ( yap_error_number  e)

Definition at line 1593 of file errors.c.

◆ Yap_errorNumber()

yap_error_number Yap_errorNumber ( yap_error_class_number  c,
const char *  s 
)

given a string(s, lookup for a corresponding error class r numbe

given a string(s) and class context, lookup for a corresponding error numbe

Definition at line 1570 of file errors.c.

◆ Yap_get_exception()

bool Yap_get_exception ( USES_REGS1  )

Definition at line 1558 of file errors.c.

◆ Yap_GetException()

yap_error_descriptor_t * Yap_GetException ( void  )

clone Active Error

Definition at line 1389 of file errors.c.

◆ Yap_PeekException()

yap_error_descriptor_t * Yap_PeekException ( void  )

is an error active?

Definition at line 1377 of file errors.c.

◆ Yap_PrintException()

void Yap_PrintException ( yap_error_descriptor_t i)

print descriptor to user_output/stdout

Definition at line 1401 of file errors.c.

◆ Yap_RaiseException()

bool Yap_RaiseException ( )

let's go

Definition at line 1410 of file errors.c.

◆ Yap_ResetException()

bool Yap_ResetException ( yap_error_descriptor_t i)

clean up (notice that the code ensures ActiveError exists on exit

Definition at line 1425 of file errors.c.

◆ Yap_RestartException()

bool Yap_RestartException ( yap_error_descriptor_t i)

clean up (notice that the code ensures ActiveError exists on exit

Definition at line 1438 of file errors.c.

Functions

yap_error_descriptor_tYap_PeekException (void)
 is an error active? More...
 
yap_error_descriptor_tYap_GetException (void)
 clone Active Error More...
 
void Yap_PrintException (yap_error_descriptor_t *i)
 print descriptor to user_output/stdout More...
 
bool Yap_RaiseException ()
 let's go More...
 
bool Yap_ResetException (yap_error_descriptor_t *i)
 clean up (notice that the code ensures ActiveError exists on exit More...
 
bool Yap_RestartException (yap_error_descriptor_t *i)
 clean up (notice that the code ensures ActiveError exists on exit More...
 
bool Yap_get_exception (USES_REGS1)
 
yap_error_number Yap_errorNumber (yap_error_class_number c, const char *s)
 given a string(s, lookup for a corresponding error class r numbe More...
 
char * Yap_errorName (yap_error_number e)
 
yap_error_descriptor_tevent (Term t, yap_error_descriptor_t *i)