This class is designed to declare objects to be thrown as exceptions by TerraLib. More...
#include <Exception.h>
Public Member Functions | |
virtual int | code () const throw () |
It gets the exception code. More... | |
Exception () throw () | |
Default constructor. More... | |
Exception (const std::string &what, int code=UNKNOWN_EXCEPTION) throw () | |
It initializes a new Exception. More... | |
Exception (const char *const what, int code=UNKNOWN_EXCEPTION) throw () | |
It initializes a new Exception. More... | |
virtual const char * | getClassName () const throw () |
It return the exception class name. More... | |
virtual const char * | what () const throw () |
It outputs the exception message. More... | |
virtual | ~Exception () throw () |
Destructor. More... | |
Protected Attributes | |
int | m_code |
The internal exception code. More... | |
std::string | m_msg |
The internal exception message. More... | |
This class is designed to declare objects to be thrown as exceptions by TerraLib.
What is an Exception?
In other words, it can be any exception thrown by TerraLib when something goes wrong.
Definition at line 58 of file Exception.h.
te::common::Exception::Exception | ( | ) | ||
throw | ( | |||
) |
Default constructor.
|
explicit |
It initializes a new Exception.
what | A brief description of what has raised the exception. |
|
explicit |
It initializes a new Exception.
what | A brief description of what has raised the exception. |
|
virtual |
Destructor.
|
virtual |
It gets the exception code.
|
virtual |
It return the exception class name.
Reimplemented in te::common::LoggedException.
|
virtual |
It outputs the exception message.
|
protected |
The internal exception code.
Definition at line 105 of file Exception.h.
|
protected |
The internal exception message.
Definition at line 106 of file Exception.h.