A device detection library that is used natively or by 51Degrees products

FiftyoneDegrees::Common::StatusCodeException Class Reference

Detailed Description

Exception containing the status code which caused the exception.

Inheritance diagram for FiftyoneDegrees::Common::StatusCodeException:

[legend]

Collaboration diagram for FiftyoneDegrees::Common::StatusCodeException:

[legend]

Public Member Functions

 StatusCodeException (fiftyoneDegreesStatusCode code)
 New exception from the status code provided.
 StatusCodeException (fiftyoneDegreesStatusCode code, const char *fileName)
 New exception from the status code provided and the file name relating to the operation which failed.
 ~StatusCodeException ()
 Dispose of the exception instance.
const char * what () const noexcept
 Get the message associated with the exception.
fiftyoneDegreesStatusCode getCode () const noexcept
 Get the status code.

Protected Member Functions

 StatusCodeException ()
 Default constructor.

Protected Attributes

fiftyoneDegreesStatusCode statusCode
 Status code.
string message
 Error message from the status code.

Constructor & Destructor Documentation

◆ StatusCodeException() [1/2]

FiftyoneDegrees::Common::StatusCodeException::StatusCodeException ( fiftyoneDegreesStatusCode code)

New exception from the status code provided.

Parameters
codeindicating the error

◆ StatusCodeException() [2/2]

FiftyoneDegrees::Common::StatusCodeException::StatusCodeException ( fiftyoneDegreesStatusCode code,
const char * fileName )

New exception from the status code provided and the file name relating to the operation which failed.

Parameters
codeindicating the error
fileNamerelating the failed operation

Member Function Documentation

◆ what()

const char * FiftyoneDegrees::Common::StatusCodeException::what ( ) const
noexcept

Get the message associated with the exception.

Returns
error message

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