\r\n

51Degrees Device Detection C/C++  4.4

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. More...
 StatusCodeException (fiftyoneDegreesStatusCode code, const char *fileName)
New exception from the status code provided and the file name relating to the operation which failed. More...
 ~StatusCodeException ()
Dispose of the exception instance.
const char *  what () const noexcept
Get the message associated with the exception. More...
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. More...

Constructor & Destructor Documentation

◆ StatusCodeException() [1/2]

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

New exception from the status code provided.

Parameters
code - indicating 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
code - indicating the error
fileName - relating 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

Field Documentation

◆ message

string FiftyoneDegrees::Common::StatusCodeException::message
protected

Error message from the status code.


The documentation for this class was generated from the following file:
  • /home/runner/work/device-detection-cxx/device-detection-cxx/common/device-detection-cxx/src/common-cxx/Exceptions.hpp