ldas-tools-al
2.6.3
|
System Includes. More...
#include <errorinfo.hh>
Public Member Functions | |
ErrorInfo (int library, int code, const std::string &1, const std::string &info="", const char *file=0, size_t line=0) | |
Constructor. More... | |
ErrorInfo (const ErrorInfo &e) | |
Copy constructor. More... | |
~ErrorInfo () | |
Destructor. More... | |
const ErrorInfo & | operator= (const ErrorInfo &e) |
Assign. More... | |
bool | operator== (const ErrorInfo &e) const |
Equal Comparison. More... | |
bool | operator!= (const ErrorInfo &e) const |
Not-Equal Comparison. More... | |
int | getLibrary () const |
Get Library. More... | |
int | getCode () const |
Get Error Code. More... | |
const std::string & | getMessage () const |
Get Error Message. More... | |
const std::string & | getInfo () const |
Get Error Information. More... | |
const char * | getFile () const |
Get File Name. More... | |
size_t | getLine () const |
Get Line Number. More... | |
ErrorInfo (int library, int code, const std::string &1, const std::string &info="", const char *file=0, size_t line=0) | |
Constructor. More... | |
ErrorInfo (const ErrorInfo &e) | |
Copy constructor. More... | |
~ErrorInfo () | |
Destructor. More... | |
const ErrorInfo & | operator= (const ErrorInfo &e) |
Assign. More... | |
bool | operator== (const ErrorInfo &e) const |
bool | operator!= (const ErrorInfo &e) const |
int | getLibrary () const |
int | getCode () const |
const std::string & | getMessage () const |
const std::string & | getInfo () const |
const char * | getFile () const |
size_t | getLine () const |
ErrorInfo (int library, int code, const std::string &1, const std::string &info="", const char *file=0, size_t line=0) | |
Constructor. More... | |
ErrorInfo (const ErrorInfo &e) | |
Copy constructor. More... | |
~ErrorInfo () | |
Destructor. More... | |
const ErrorInfo & | operator= (const ErrorInfo &e) |
Assign. More... | |
bool | operator== (const ErrorInfo &e) const |
bool | operator!= (const ErrorInfo &e) const |
int | getLibrary () const |
int | getCode () const |
const std::string & | getMessage () const |
const std::string & | getInfo () const |
const char * | getFile () const |
size_t | getLine () const |
Private Attributes | |
int | mLibrary |
The library in which the error occurred (int). More... | |
int | mCode |
The error code (int) More... | |
std::string | mMsg |
A string representation of the error code (string). More... | |
std::string | mInfo |
Additional information specific to the error (string) More... | |
char * | mFile |
The file in which the error was thrown (const char*) More... | |
size_t | mLine |
The line on which the error was thrown (size_t) More... | |
System Includes.
Error Information
This class is used by the LdasException class to store information about a thrown exception.
ErrorInfo::ErrorInfo | ( | int | library, |
int | code, | ||
const std::string & | 1, | ||
const std::string & | info = "" , |
||
const char * | file = 0 , |
||
size_t | line = 0 |
||
) |
Constructor.
library | Library enumerated type |
code | Error code |
msg | String representation of error code. |
info | Addition information specific to the error |
file | File in which the error was thrown. |
line | Line number in file where error was thrown. |
library | |
code | |
msg | |
info | |
file | |
line |
ErrorInfo::ErrorInfo | ( | const ErrorInfo & | e | ) |
Copy constructor.
Copy Constructor.
e | Source |
e |
ErrorInfo::~ErrorInfo | ( | ) |
Destructor.
ErrorInfo::ErrorInfo | ( | int | library, |
int | code, | ||
const std::string & | 1, | ||
const std::string & | info = "" , |
||
const char * | file = 0 , |
||
size_t | line = 0 |
||
) |
Constructor.
library | Library enumerated type |
code | Error code |
msg | String representation of error code. |
info | Addition information specific to the error |
file | File in which the error was thrown. |
line | Line number in file where error was thrown. |
ErrorInfo::ErrorInfo | ( | const ErrorInfo & | e | ) |
Copy constructor.
e | Source |
ErrorInfo::~ErrorInfo | ( | ) |
Destructor.
ErrorInfo::ErrorInfo | ( | int | library, |
int | code, | ||
const std::string & | 1, | ||
const std::string & | info = "" , |
||
const char * | file = 0 , |
||
size_t | line = 0 |
||
) |
Constructor.
library | Library enumerated type |
code | Error code |
msg | String representation of error code. |
info | Addition information specific to the error |
file | File in which the error was thrown. |
line | Line number in file where error was thrown. |
ErrorInfo::ErrorInfo | ( | const ErrorInfo & | e | ) |
Copy constructor.
e | Source |
ErrorInfo::~ErrorInfo | ( | ) |
Destructor.
|
inline |
Get Error Code.
int ErrorInfo::getCode | ( | ) | const |
int ErrorInfo::getCode | ( | ) | const |
const char* ErrorInfo::getFile | ( | ) | const |
|
inline |
Get File Name.
Get the name of the file in which the error was thrown.
const char* ErrorInfo::getFile | ( | ) | const |
const std::string& ErrorInfo::getInfo | ( | ) | const |
const std::string& ErrorInfo::getInfo | ( | ) | const |
|
inline |
Get Error Information.
Returns additional information about the error.
|
inline |
Get Library.
int ErrorInfo::getLibrary | ( | ) | const |
int ErrorInfo::getLibrary | ( | ) | const |
size_t ErrorInfo::getLine | ( | ) | const |
size_t ErrorInfo::getLine | ( | ) | const |
|
inline |
Get Line Number.
Get the line number on which the error was thrown.
const std::string& ErrorInfo::getMessage | ( | ) | const |
|
inline |
Get Error Message.
Returns a text representation of the error code.
return const std::string&
const std::string& ErrorInfo::getMessage | ( | ) | const |
bool ErrorInfo::operator!= | ( | const ErrorInfo & | e | ) | const |
bool ErrorInfo::operator!= | ( | const ErrorInfo & | e | ) | const |
|
inline |
Not-Equal Comparison.
e |
bool ErrorInfo::operator== | ( | const ErrorInfo & | e | ) | const |
Equal Comparison.
e |
bool ErrorInfo::operator== | ( | const ErrorInfo & | e | ) | const |
bool ErrorInfo::operator== | ( | const ErrorInfo & | e | ) | const |
|
private |
The error code (int)
|
private |
The file in which the error was thrown (const char*)
|
private |
Additional information specific to the error (string)
|
private |
The library in which the error occurred (int).
|
private |
The line on which the error was thrown (size_t)
|
private |
A string representation of the error code (string).