SHORE API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
shore::uncaught_handler Class Reference

Reporting uncaught program exceptions. More...

Public Types

enum  Status {
  STATUS_OK, STATUS_ERR_USAGE, STATUS_ERR_FILESYSTEM, STATUS_ERR_IO,
  STATUS_ERR_RUNTIME, STATUS_ERR_DOMAIN, STATUS_ERR_LOGIC, STATUS_ERR_EXCEPTION,
  STATUS_ERR_ANY
}
 

Public Member Functions

 uncaught_handler (const std::string &name)
 
void set_rethrow_exceptions (const bool b)
 
void set_stream (std::ostream &os)
 Set the stream that error messages are printed to (std::cerr by default).
 
void set_file (const std::string &fn)
 Set the stream that error messages are printed to (std::cerr by default).
 
void add_stream (std::ostream &os)
 Add a stream that error messages are printed to.
 
void add_file (const std::string &fn)
 Add a stream that error messages are printed to.
 
Status status () const
 Get the last status.
 
template<typename Func >
Status operator() (Func func)
 

Detailed Description

Reporting uncaught program exceptions.


The documentation for this class was generated from the following file: