EXPORT_CLASSclass exception

The base class for all libksd exceptions

Public Methods

[more] exception(const std::string& _sender, const std::string& _message) throw()
Create an exception.
[more]virtual ~exception()
Destructor
[more]std::string who() const throw()
Returns the sender string
[more]std::string what() const throw()
Returns the message string
[more]virtual std::string type() const throw()
Returns a type name for this exception.
[more]virtual void report(std::ostream& output) const
Prints a detailed description of the exception to an output stream.
[more]void report() const
This just calls the other report with the standard error stream.


Documentation

The base class for all libksd exceptions
o 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.

ovirtual ~exception()
Destructor

ostd::string who() const throw()
Returns the sender string

ostd::string what() const throw()
Returns the message string

ovirtual std::string type() const throw()
Returns a type name for this exception. Child classes should override to provide new type names.

ovirtual 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.

ovoid 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++.