retdec-cpp
|
Exception thrown when the API is used incorrectly. More...
#include <exceptions.h>
Public Member Functions | |
ApiError (int code, const std::string &message, const std::string &description="") | |
Creates an exception. More... | |
int | getCode () const noexcept |
Returns the error code. More... | |
std::string | getMessage () const |
Returns a short message describing the error. More... | |
std::string | getDescription () const |
Returns a full description of the error (if any). More... | |
Exception thrown when the API is used incorrectly.
retdec::ApiError::ApiError | ( | int | code, |
const std::string & | message, | ||
const std::string & | description = "" |
||
) |
Creates an exception.
[in] | code | Error code. |
[in] | message | Short message describing the error. |
[in] | description | Full description of the error. |
|
noexcept |
Returns the error code.
std::string retdec::ApiError::getDescription | ( | ) | const |
Returns a full description of the error (if any).
If there is no description, it returns the same value as what()
.
std::string retdec::ApiError::getMessage | ( | ) | const |
Returns a short message describing the error.