51Degrees Device Detection C/C++  4.1

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.

Examples
Hash/ReloadFromFile.cpp, and Hash/ReloadFromMemory.cpp.

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...

Protected Member Functions

 StatusCodeException ()
Default constructor.

Protected Attributes

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/vsts/work/1/s/apis/device-detection-cxx/src/common-cxx/Exceptions.hpp