12.9.4 Foreign stream error handling
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Foreign Language Interface
        • Foreign access to Prolog IO streams
          • Foreign stream error handling
            • Sferror()
            • Sclearerr()
            • Sseterr()
            • Sset_exception()
    • Packages
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.