IniFile
Loading...
Searching...
No Matches
eut::ErrorNException Class Reference

This exception class has an integer attribute for an error number in addition to the message. More...

#include <EuException.h>

Inheritance diagram for eut::ErrorNException:

Public Member Functions

 ErrorNException (const std::string &_Message, int iError, char const *chFileName, int iLine)
 
 ErrorNException (const char *_Message, int iError, char const *chFileName, int iLine)
 
 ErrorNException (const ErrorNException &rT)
 
int error () const
 
char const * fileName () const
 
int lineNumber () const
 
ErrorNExceptionoperator= (const ErrorNException &rT)
 

Private Attributes

int m_iError
 
char const * m_FileName
 
int m_iLineNumber
 

Detailed Description

This exception class has an integer attribute for an error number in addition to the message.

Author
Helmut Jakoby

Constructor & Destructor Documentation

◆ ErrorNException() [1/3]

eut::ErrorNException::ErrorNException ( const std::string & _Message,
int iError,
char const * chFileName,
int iLine )
inline

Constructor with parameter passing.

Parameters
[in]_MessageError text.
[in]iErrorError code.
[in]chFileNameThe name of the file where the exception was trown.
[in]iLineThe line number where the exception was trown.

◆ ErrorNException() [2/3]

eut::ErrorNException::ErrorNException ( const char * _Message,
int iError,
char const * chFileName,
int iLine )
inline

Constructor with parameter passing.

Parameters
[in]_MessageError text.
[in]iErrorError code.
[in]chFileNameThe name of the file where the exception was trown.
[in]iLineThe line number where the exception was trown.

◆ ErrorNException() [3/3]

eut::ErrorNException::ErrorNException ( const ErrorNException & rT)
inline

Copy constructor.

Parameters
[in]rTThe data is copied from this object.

Member Function Documentation

◆ error()

int eut::ErrorNException::error ( ) const
inline

Returns the error code.

Returns
see above.

◆ fileName()

char const * eut::ErrorNException::fileName ( ) const
inline

Returns the name of the file where the exception was trown.

Returns
see above.

◆ lineNumber()

int eut::ErrorNException::lineNumber ( ) const
inline

Returns the line number where the exception was trown.

Returns
see above.

◆ operator=()

ErrorNException & eut::ErrorNException::operator= ( const ErrorNException & rT)
inline

Allocation operator which expects an ErrorNException.

Parameters
[in]rTThe data is transferred from this object.

Member Data Documentation

◆ m_FileName

char const* eut::ErrorNException::m_FileName
private

The name of the file where the exception was trown.

◆ m_iError

int eut::ErrorNException::m_iError
private

The error number is in this attribute.

◆ m_iLineNumber

int eut::ErrorNException::m_iLineNumber
private

The line number where the exception was trown.


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