Root exception class used within the GUI system.
More...
Inherited by CEGUI::AlreadyExistsException, CEGUI::FileIOException, CEGUI::GenericException, CEGUI::InvalidRequestException, CEGUI::MemoryException, CEGUI::NullObjectException, CEGUI::ObjectInUseException, CEGUI::RendererException, CEGUI::ScriptException, and CEGUI::UnknownObjectException.
|
virtual | ~Exception (void) |
| Virtual destructor.
|
|
const String & | getMessage (void) const |
| Return a reference to the String object describing the reason for the exception being thrown. More...
|
|
const String & | getName () const |
| Return a reference to the String object containing the exception name (i.e. class type). More...
|
|
const String & | getFileName (void) const |
| Return a reference to the String object containing the name of the file where the exception occurred. More...
|
|
const int | getLine (void) const |
| Return the line number where the exception occurred. More...
|
|
|
| Exception (const String &message="", const String &name="CEGUI::Exception", const String &filename="", int line=0) |
| Protected constructor that prevents instantiations (users should employ derived exception classes instead) and that is responsible for logging the exception. More...
|
|
Root exception class used within the GUI system.
CEGUI::Exception::Exception |
( |
const String & |
message = "" , |
|
|
const String & |
name = "CEGUI::Exception" , |
|
|
const String & |
filename = "" , |
|
|
int |
line = 0 |
|
) |
| |
|
protected |
Protected constructor that prevents instantiations (users should employ derived exception classes instead) and that is responsible for logging the exception.
- Parameters
-
message | String object describing the reason for the exception being thrown. |
name | String object describing the exception class name (e.g. CEGUI::UnknownObjectException) |
filename | String object containing the name of the file where the exception occurred. |
line | Integer representing the line number where the exception occurred. |
References CEGUI::String::c_str(), CEGUI::Errors, and CEGUI::Logger::logEvent().
const String& CEGUI::Exception::getFileName |
( |
void |
| ) |
const |
|
inline |
Return a reference to the String object containing the name of the file where the exception occurred.
- Returns
- String object containing the name of the file where the exception occurred.
const int CEGUI::Exception::getLine |
( |
void |
| ) |
const |
|
inline |
Return the line number where the exception occurred.
Integer representing the line number where the exception occurred.
const String& CEGUI::Exception::getMessage |
( |
void |
| ) |
const |
|
inline |
Return a reference to the String object describing the reason for the exception being thrown.
- Returns
- String object containing a message describing the reason for the exception.
const String& CEGUI::Exception::getName |
( |
void |
| ) |
const |
|
inline |
Return a reference to the String object containing the exception name (i.e. class type).
- Returns
- String object containing the exception name.