Format Exception.
More...
#include <formatexception.hh>
|
| FormatException (int library, int code, const std::string &1="", const std::string &info="", const char *file=0, size_t line=0) throw ( ) |
| Constructor.
|
|
bool | operator== (const LdasException &e) const |
| Equal Comparison.
|
|
bool | operator!= (const LdasException &e) const |
| Not-Equal Comparison.
|
|
const ErrorInfo & | getError (size_t i) const |
| Get Error Info.
|
|
const ErrorInfo & | operator[] (size_t i) const |
| Array Operator.
|
|
size_t | getSize () const |
| Get Size.
|
|
void | addError (int library, int code, const std::string &1, const std::string &info="", const char *file=0, size_t line=0) |
| Add Error.
|
|
void | addError (const ErrorInfo &e) |
| Add Error.
|
|
Format Exception.
This class is derived from LdasException. It does not define any new methods or data. It is used simply to differentiate between error types when thrown.
◆ FormatException()
FormatException::FormatException |
( |
int | library, |
|
|
int | code, |
|
|
const std::string & | 1 = "", |
|
|
const std::string & | info = "", |
|
|
const char * | file = 0, |
|
|
size_t | line = 0 ) |
throw | ( | ) | | | |
|
inline |
Constructor.
Just call the LdasException constructor.
- Parameters
-
library | |
code | |
msg | |
info | |
file | |
line | |
◆ addError() [1/2]
void LdasException::addError |
( |
const ErrorInfo & | e | ) |
|
|
inherited |
Add Error.
Add another error info object to the class.
- Parameters
-
◆ addError() [2/2]
void LdasException::addError |
( |
int | library, |
|
|
int | code, |
|
|
const std::string & | 1, |
|
|
const std::string & | info = "", |
|
|
const char * | file = 0, |
|
|
size_t | line = 0 ) |
|
inherited |
Add Error.
Add another error info object to the class.
- Parameters
-
library | |
code | |
msg | |
info | |
file | |
line | |
◆ getError()
const ErrorInfo & LdasException::getError |
( |
size_t | i | ) |
const |
|
inherited |
Get Error Info.
- Parameters
-
- Returns
- const ErrorInfo&
exc: range_error
◆ getSize()
size_t LdasException::getSize |
( |
| ) |
const |
|
inlineinherited |
Get Size.
Return the number of ErrorInfo objects contained in this object.
- Returns
- size_t
◆ operator!=()
Not-Equal Comparison.
- Parameters
-
- Returns
- bool
◆ operator==()
Equal Comparison.
- Parameters
-
- Returns
- bool
◆ operator[]()
const ErrorInfo & LdasException::operator[] |
( |
size_t | i | ) |
const |
|
inherited |
Array Operator.
- Parameters
-
- Returns
- const ErrorInfo&
exc: range_error
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7/build/include/ldastoolsal/formatexception.hh
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7/src/formatexception.hh