12.3.83 SP_raise_exception()

Synopsis

     #include <sicstus/sicstus.h>
     
     void
     SP_raise_exception(SP_term_ref term);

Raises an exception in the scope of Prolog calling C.

Arguments

term
The SP_term_ref whose value will be the exception term.

Description

The exception will be stored as pending. This function is normally used in the context of a call from Prolog to C, and will cause the exception to be propagated to Prolog on return from the call.

See Also

Exception Handling in C.


Send feedback on this subject.