System Includes.
More...
#include <errorinfo.hh>
|
| | ErrorInfo (int library, int code, const std::string &1, const std::string &info="", const char *file=0, size_t line=0) |
| | Constructor.
|
| | ErrorInfo (const ErrorInfo &e) |
| | Copy constructor.
|
| | ~ErrorInfo () |
| | Destructor.
|
| const ErrorInfo & | operator= (const ErrorInfo &e) |
| | Assign.
|
| bool | operator== (const ErrorInfo &e) const |
| | Equal Comparison.
|
| bool | operator!= (const ErrorInfo &e) const |
| | Not-Equal Comparison.
|
| int | getLibrary () const |
| | Get Library.
|
| int | getCode () const |
| | Get Error Code.
|
| const std::string & | getMessage () const |
| | Get Error Message.
|
| const std::string & | getInfo () const |
| | Get Error Information.
|
| const char * | getFile () const |
| | Get File Name.
|
| size_t | getLine () const |
| | Get Line Number.
|
| | ErrorInfo (int library, int code, const std::string &1, const std::string &info="", const char *file=0, size_t line=0) |
| | Constructor.
|
| | ErrorInfo (const ErrorInfo &e) |
| | Copy constructor.
|
| | ~ErrorInfo () |
| | Destructor.
|
| const ErrorInfo & | operator= (const ErrorInfo &e) |
| | Assign.
|
| 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 |
|
| int | mLibrary |
| | The library in which the error occurred (int).
|
| int | mCode |
| | The error code (int)
|
| std::string | mMsg |
| | A string representation of the error code (string).
|
| std::string | mInfo |
| | Additional information specific to the error (string)
|
| char * | mFile |
| | The file in which the error was thrown (const char*)
|
| size_t | mLine |
| | The line on which the error was thrown (size_t)
|
System Includes.
Error Information
This class is used by the LdasException class to store information about a thrown exception.
◆ ErrorInfo() [1/4]
| ErrorInfo::ErrorInfo |
( |
int | library, |
|
|
int | code, |
|
|
const std::string & | 1, |
|
|
const std::string & | info = "", |
|
|
const char * | file = 0, |
|
|
size_t | line = 0 ) |
Constructor.
- Parameters
-
| 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() [2/4]
Copy constructor.
Copy Constructor.
- Parameters
-
◆ ~ErrorInfo() [1/2]
| ErrorInfo::~ErrorInfo |
( |
| ) |
|
◆ ErrorInfo() [3/4]
| ErrorInfo::ErrorInfo |
( |
int | library, |
|
|
int | code, |
|
|
const std::string & | 1, |
|
|
const std::string & | info = "", |
|
|
const char * | file = 0, |
|
|
size_t | line = 0 ) |
Constructor.
- Parameters
-
| 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() [4/4]
Copy constructor.
- Parameters
-
◆ ~ErrorInfo() [2/2]
| ErrorInfo::~ErrorInfo |
( |
| ) |
|
◆ getCode() [1/2]
| int ErrorInfo::getCode |
( |
| ) |
const |
|
inline |
Get Error Code.
- Returns
- int
◆ getCode() [2/2]
| int ErrorInfo::getCode |
( |
| ) |
const |
◆ getFile() [1/2]
| const char * ErrorInfo::getFile |
( |
| ) |
const |
|
inline |
Get File Name.
Get the name of the file in which the error was thrown.
- Returns
- const char*
◆ getFile() [2/2]
| const char * ErrorInfo::getFile |
( |
| ) |
const |
◆ getInfo() [1/2]
| const std::string & ErrorInfo::getInfo |
( |
| ) |
const |
|
inline |
Get Error Information.
Returns additional information about the error.
- Returns
- const std::string&
◆ getInfo() [2/2]
| const std::string & ErrorInfo::getInfo |
( |
| ) |
const |
◆ getLibrary() [1/2]
| int ErrorInfo::getLibrary |
( |
| ) |
const |
|
inline |
Get Library.
- Returns
- int The number of the library which threw the exception.
◆ getLibrary() [2/2]
| int ErrorInfo::getLibrary |
( |
| ) |
const |
◆ getLine() [1/2]
| size_t ErrorInfo::getLine |
( |
| ) |
const |
|
inline |
Get Line Number.
Get the line number on which the error was thrown.
- Returns
- size_t
◆ getLine() [2/2]
| size_t ErrorInfo::getLine |
( |
| ) |
const |
◆ getMessage() [1/2]
| const std::string & ErrorInfo::getMessage |
( |
| ) |
const |
|
inline |
Get Error Message.
Returns a text representation of the error code.
return const std::string&
◆ getMessage() [2/2]
| const std::string & ErrorInfo::getMessage |
( |
| ) |
const |
◆ operator!=() [1/2]
| bool ErrorInfo::operator!= |
( |
const ErrorInfo & | e | ) |
const |
|
inline |
Not-Equal Comparison.
- Parameters
-
- Returns
- bool
◆ operator!=() [2/2]
| bool ErrorInfo::operator!= |
( |
const ErrorInfo & | e | ) |
const |
◆ operator=() [1/2]
Assign.
Assignment Operator.
- Parameters
-
- Returns
- const ErrorInfo&
◆ operator=() [2/2]
◆ operator==() [1/2]
| bool ErrorInfo::operator== |
( |
const ErrorInfo & | e | ) |
const |
Equal Comparison.
- Parameters
-
- Returns
- bool
◆ operator==() [2/2]
| bool ErrorInfo::operator== |
( |
const ErrorInfo & | e | ) |
const |
◆ mCode
◆ mFile
The file in which the error was thrown (const char*)
◆ mInfo
| std::string ErrorInfo::mInfo |
|
private |
Additional information specific to the error (string)
◆ mLibrary
The library in which the error occurred (int).
◆ mLine
The line on which the error was thrown (size_t)
◆ mMsg
| std::string ErrorInfo::mMsg |
|
private |
A string representation of the error code (string).
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/build/include/ldastoolsal/errorinfo.hh
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/src/errorinfo.hh
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/src/errorinfo.cc