8 #ifndef RETDEC_EXCEPTIONS_H 9 #define RETDEC_EXCEPTIONS_H 19 class Error:
public std::runtime_error {
21 using std::runtime_error::runtime_error;
37 using IoError::IoError;
45 using IoError::IoError;
53 ApiError(
int code,
const std::string &message,
54 const std::string &description =
"");
56 int getCode()
const noexcept;
57 std::string getMessage()
const;
58 std::string getDescription()
const;
65 const std::string message;
68 const std::string description;
92 using ResourceError::ResourceError;
100 using ResourceError::ResourceError;
Exception thrown when there is a filesystem error.
Definition: exceptions.h:35
The namespace of the library.
Definition: doxygen.h:8
Exception thrown when there is a connection error.
Definition: exceptions.h:43
ApiError(int code, const std::string &message, const std::string &description="")
Creates an exception.
Definition: exceptions.cpp:19
Exception thrown when there is an I/O error.
Definition: exceptions.h:27
Base class of resource exceptions.
Definition: exceptions.h:82
Exception thrown when an analysis fails.
Definition: exceptions.h:98
Exception thrown when a decompilation fails.
Definition: exceptions.h:90
Exception thrown when there is an authentication or authorization error.
Definition: exceptions.h:74
Base class of custom exceptions thrown by the library.
Definition: exceptions.h:19
Exception thrown when the API is used incorrectly.
Definition: exceptions.h:51