#include <Exception.h>
This class should not depend on any other class should not throw any exceptions itself.
Typical usage:
throw Exception( __FILE__, __LINE__, "describe the exception", code);
Definition at line 65 of file Exception.h.
Public Member Functions | |
| Exception (void) throw () | |
| Default constructor. | |
| Exception (const Exception &e) throw () | |
| Copy constructor. | |
| Exception (const char *description, int code=0) throw () | |
| Construct by a description and error code. | |
| Exception (const char *file, unsigned int line, const char *description=0, int code=0) throw () | |
| Construct by source file information, a description and error code. | |
| Exception (const char *file, unsigned int line, const char *description1, const char *description2, int code=0) throw () | |
| Construct by source file information, a description and error code. | |
| Exception (const char *file, unsigned int line, const char *description1, const char *description2, const char *description3, int code=0) throw () | |
| Construct by source file information, a description and error code. | |
| ~Exception (void) throw () | |
| Desctructor. | |
| Exception & | operator= (const Exception &e) throw () |
| Assignment operator. | |
| const char * | getDescription (void) const throw () |
| Return the textual description of the Exception. | |
| unsigned int | getLine (void) const throw () |
| Return the line number in the source file this Exception was thrown in. | |
| const char * | getFile (void) const throw () |
| Return the source file this Exception was thrown in. | |
| int | getCode (void) const throw () |
| Return the numerical code of the Exception. | |
|
|
Default constructor.
Definition at line 119 of file Exception.h. |
|
|
Copy constructor.
Definition at line 128 of file Exception.h. |
|
||||||||||||
|
Construct by a description and error code.
Definition at line 140 of file Exception.h. |
|
||||||||||||||||||||
|
Construct by source file information, a description and error code.
Definition at line 155 of file Exception.h. |
|
||||||||||||||||||||||||
|
Construct by source file information, a description and error code. The description is constructed from two strings, any of which may be NULL.
Definition at line 65 of file Exception.cpp. |
|
||||||||||||||||||||||||||||
|
Construct by source file information, a description and error code. The description is constructed from three strings, any of which may be NULL.
Definition at line 104 of file Exception.cpp. |
|
|
Desctructor.
Definition at line 203 of file Exception.h. |
|
|
Return the numerical code of the Exception.
Definition at line 266 of file Exception.h. Referenced by operator<<(). |
|
|
Return the textual description of the Exception.
Definition at line 231 of file Exception.h. Referenced by IceCast::IceCast(), IceCast2::IceCast2(), and operator<<(). |
|
|
Return the source file this Exception was thrown in.
Definition at line 255 of file Exception.h. Referenced by operator<<(). |
|
|
Return the line number in the source file this Exception was thrown in.
Definition at line 244 of file Exception.h. Referenced by operator<<(). |
|
|
Assignment operator.
Definition at line 215 of file Exception.h. |
1.4.4