ldas-tools-al  2.6.5
Public Member Functions | List of all members
ErrorInfo Class Reference

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.
 
const ErrorInfooperator= (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.
 
const ErrorInfooperator= (const ErrorInfo &e)
 Assign.
 
 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.
 
const ErrorInfooperator= (const ErrorInfo &e)
 Assign.
 

Detailed Description

System Includes.

Error Information

This class is used by the LdasException class to store information about a thrown exception.

Constructor & Destructor Documentation

◆ ErrorInfo() [1/6]

ErrorInfo::ErrorInfo ( int  library,
int  code,
const std::string &  1,
const std::string &  info = "",
const char *  file = 0,
size_t  line = 0 
)

Constructor.

Parameters
libraryLibrary enumerated type
codeError code
msgString representation of error code.
infoAddition information specific to the error
fileFile in which the error was thrown.
lineLine number in file where error was thrown.
library
code
msg
info
file
line

◆ ErrorInfo() [2/6]

ErrorInfo::ErrorInfo ( const ErrorInfo e)

Copy constructor.

Copy Constructor.

Parameters
eSource
e

◆ ErrorInfo() [3/6]

ErrorInfo::ErrorInfo ( int  library,
int  code,
const std::string &  1,
const std::string &  info = "",
const char *  file = 0,
size_t  line = 0 
)

Constructor.

Parameters
libraryLibrary enumerated type
codeError code
msgString representation of error code.
infoAddition information specific to the error
fileFile in which the error was thrown.
lineLine number in file where error was thrown.

◆ ErrorInfo() [4/6]

ErrorInfo::ErrorInfo ( const ErrorInfo e)

Copy constructor.

Parameters
eSource

◆ ErrorInfo() [5/6]

ErrorInfo::ErrorInfo ( int  library,
int  code,
const std::string &  1,
const std::string &  info = "",
const char *  file = 0,
size_t  line = 0 
)

Constructor.

Parameters
libraryLibrary enumerated type
codeError code
msgString representation of error code.
infoAddition information specific to the error
fileFile in which the error was thrown.
lineLine number in file where error was thrown.

◆ ErrorInfo() [6/6]

ErrorInfo::ErrorInfo ( const ErrorInfo e)

Copy constructor.

Parameters
eSource

Member Function Documentation

◆ getCode()

int ErrorInfo::getCode ( ) const
inline

Get Error Code.

Returns
int

◆ getFile()

const char * ErrorInfo::getFile ( ) const
inline

Get File Name.

Get the name of the file in which the error was thrown.

Returns
const char*

◆ getInfo()

const std::string & ErrorInfo::getInfo ( ) const
inline

Get Error Information.

Returns additional information about the error.

Returns
const std::string&

◆ getLibrary()

int ErrorInfo::getLibrary ( ) const
inline

Get Library.

Returns
int The number of the library which threw the exception.

◆ getLine()

size_t ErrorInfo::getLine ( ) const
inline

Get Line Number.

Get the line number on which the error was thrown.

Returns
size_t

◆ getMessage()

const std::string & ErrorInfo::getMessage ( ) const
inline

Get Error Message.

Returns a text representation of the error code.

return const std::string&

◆ operator!=()

bool ErrorInfo::operator!= ( const ErrorInfo e) const
inline

Not-Equal Comparison.

Parameters
e
Returns
bool

◆ operator=()

const ErrorInfo & ErrorInfo::operator= ( const ErrorInfo e)

Assign.

Assignment Operator.

Parameters
e
Returns
const ErrorInfo&

◆ operator==()

bool ErrorInfo::operator== ( const ErrorInfo e) const

Equal Comparison.

Parameters
e
Returns
bool

The documentation for this class was generated from the following files: