Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members
Common Definitions
[Foundation
Classes]
This chapter contains all relevant
information on very fundamental definitions and classes used
throughout BN++ (part of the Foundation Classes).
More...
Namespaces |
|
| namespace | BNPP::STRFUNCT |
| STRFUNCT different
string functions. |
|
| namespace | BNPP::RTTI |
| RTTI Different methods for
runtime type identification. |
|
Classes |
|
| class | BNPP::Exception::Base |
| Exception base class.
More... |
|
| class | BNPP::String |
| String Class. More... |
|
| class | BNPP::StopWatch |
| StopWatch Class. More... |
|
Functions |
|
| std::ostream & | BNPP::operator<< (std::ostream &os, const Exception::Base &e) |
| Output operator for exceptions.
|
|
Detailed Description
This chapter contains all relevant information on very fundamental definitions and classes used throughout BN++ (part of the Foundation Classes).Function Documentation
|
||||||||||||
|
Output operator for exceptions. All BNPP exceptions can be printed to an arbitrary output stream. Information written contains the exception class, the error message, and the location (file, line number). The following code block can thus be used to catch any BNPP exceptions and convert them to human readable information:
try
{
.... // some code which potentially throws an exception
}
catch (Exception::Exception e)
{
Log.error() << "caught exception: " << e << std::endl;
}
|

