eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::EException Class Reference

The exception type used in this library. More...

Inheritance diagram for eVision::EException:
Collaboration diagram for eVision::EException:

Public Member Functions

 EException (eVision::EError error, const char *str_message)
 Constructs an exception object.
 EException (eVision::EError error, const std::string &message)
 Constructs an exception object.
 EException (const char *str_message)
 Constructs an exception object.
 EException (const std::string &message)
 Constructs an exception object.
std::string What () const
 Returns the description of the error that has thrown the exception.
eVision::EError GetError () const
 Returns the code of the error that has thrown the exception.
void SetError (eVision::EError error)
 Sets the code of the error that has thrown the exception.

Detailed Description

The exception type used in this library.

Constructor & Destructor Documentation

◆ EException() [1/4]

eVision::EException::EException ( eVision::EError error,
const char * str_message )

Constructs an exception object.

Parameters
errorThe error code.
str_messageA string to construct the exception from.

◆ EException() [2/4]

eVision::EException::EException ( eVision::EError error,
const std::string & message )

Constructs an exception object.

Parameters
errorThe error code.
messageA string to construct the exception from.

◆ EException() [3/4]

eVision::EException::EException ( const char * str_message)

Constructs an exception object.

Parameters
str_messageA string to construct the exception from.

◆ EException() [4/4]

eVision::EException::EException ( const std::string & message)

Constructs an exception object.

Parameters
messageA string to construct the exception from.

Member Function Documentation

◆ GetError()

eVision::EError eVision::EException::GetError ( ) const

Returns the code of the error that has thrown the exception.

◆ SetError()

void eVision::EException::SetError ( eVision::EError error)

Sets the code of the error that has thrown the exception.

◆ What()

std::string eVision::EException::What ( ) const

Returns the description of the error that has thrown the exception.