|
| LdasException () |
| Default Constructor. More...
|
|
| LdasException (int library, int code, const std::string &1, const std::string &info="", const char *file=0, size_t line=0) |
| Constructor. More...
|
|
| LdasException (const ErrorInfo &e) |
| Constructor. More...
|
|
| LdasException (const LdasException &e) |
| Copy Constructor. More...
|
|
virtual | ~LdasException () |
| Destructor. More...
|
|
LdasException & | operator= (const LdasException &e) |
| Assignment Operator. More...
|
|
bool | operator== (const LdasException &e) const |
| Equal Comparison. More...
|
|
bool | operator!= (const LdasException &e) const |
| Not-Equal Comparison. More...
|
|
const ErrorInfo & | getError (size_t i) const |
| Get Error Info. More...
|
|
const ErrorInfo & | operator[] (size_t i) const |
| Array Operator. More...
|
|
size_t | getSize () const |
| Get Size. More...
|
|
void | addError (int library, int code, const std::string &1, const std::string &info="", const char *file=0, size_t line=0) |
| Add Error. More...
|
|
void | addError (const ErrorInfo &e) |
| Add Error. More...
|
|
| LdasException () |
|
| LdasException (int library, int code, const std::string &1, const std::string &info="", const char *file=0, size_t line=0) |
|
| LdasException (const ErrorInfo &e) |
|
| LdasException (const LdasException &e) |
|
virtual | ~LdasException () |
|
LdasException & | operator= (const LdasException &e) |
|
bool | operator== (const LdasException &e) const |
|
bool | operator!= (const LdasException &e) const |
|
const ErrorInfo & | getError (size_t i) const |
|
const ErrorInfo & | operator[] (size_t i) const |
|
size_t | getSize () const |
|
void | addError (int library, int code, const std::string &1, const std::string &info="", const char *file=0, size_t line=0) |
|
void | addError (const ErrorInfo &e) |
|
LDAS Exception Class.
This class defines the types of exceptions thrown by the LDAS libraries. The class stores multiple instances of ErrorInfo objects, allowing an exception to be tracked as it is thrown and re-thrown in the code.
This class carries a lot of information with it, so it should only be used to report errors. Throwing this class should not be a normal part of the program flow.
Due to the overhead, this class is probably not very good for reporting memory allocation errors.