The base class for all libksd exceptions
Public Methods
-
exception(const std::string& _sender, const std::string& _message) throw()
- Create an exception.
-
virtual ~exception()
- Destructor
-
std::string who() const throw()
- Returns the sender string
-
std::string what() const throw()
- Returns the message string
-
virtual std::string type() const throw()
- Returns a type name for this exception.
-
virtual void report(std::ostream& output) const
- Prints a detailed description of the exception to an output stream.
-
void report() const
- This just calls the other report with the standard error stream.
Documentation
The base class for all libksd exceptions
- exception(const std::string& _sender, const std::string& _message) throw()
- Create an exception.
- Parameters:
- _sender - Refers to the unit that threw it. (ex. Screen, Application)
_message - A generic text message. If you need to leave more then add
it in a subclass and overload report.
- virtual ~exception()
- Destructor
- std::string who() const throw()
- Returns the sender string
- std::string what() const throw()
- Returns the message string
- virtual std::string type() const throw()
- Returns a type name for this exception. Child classes should override
to provide new type names.
- virtual void report(std::ostream& output) const
- Prints a detailed description of the exception to an output stream.
Sub-classes should overload this to provide output for the extra data
that they carry and leave the exception message unpolluted.
- void report() const
- This just calls the other report with the standard error stream. In general,
you'll want to call this function instead of the other, just for easy of use.
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.