SP_exception_term()
#include <sicstus/sicstus.h> int SP_exception_term(SP_term_ref term);
Retracts the current pending exception term, if it exists, and assigns it to term.
term
1 if an execption term was retracted and assigned, and 0 otherwise.
Exception Handling in C.