Availability:C-language interface function
int Sset_exception(IOSTREAM
*s, term_t ex)Associate a Prolog exception term with the stream or clear the
associated exception if ex is 0 and set/clear the
SIO_FERR
condition on the stream. If an exception is
assocated PL_release_stream()
raises this exception.