Crypto++ 8.9
Free C++ class library of cryptographic schemes
|
The operating system reported an error. More...
#include <cryptlib.h>
Public Member Functions | |
OS_Error (ErrorType errorType, const std::string &s, const std::string &operation, int errorCode) | |
Construct an OS_Error. | |
const std::string & | GetOperation () const |
Retrieve the operating system API that reported the error. | |
int | GetErrorCode () const |
Retrieve the error code returned by the operating system. | |
Public Member Functions inherited from Exception | |
Exception (ErrorType errorType, const std::string &s) | |
Construct a new Exception. | |
const char * | what () const throw () |
Retrieves a C-string describing the exception. | |
const std::string & | GetWhat () const |
Retrieves a string describing the exception. | |
void | SetWhat (const std::string &s) |
Sets the error string for the exception. | |
ErrorType | GetErrorType () const |
Retrieves the error type for the exception. | |
void | SetErrorType (ErrorType errorType) |
Sets the error type for the exceptions. | |
Additional Inherited Members | |
Public Types inherited from Exception | |
enum | ErrorType { NOT_IMPLEMENTED , INVALID_ARGUMENT , CANNOT_FLUSH , DATA_INTEGRITY_CHECK_FAILED , INVALID_DATA_FORMAT , IO_ERROR , OTHER_ERROR } |
Error types or categories. More... | |
The operating system reported an error.
Definition at line 257 of file cryptlib.h.
|
inlinevirtual |
Definition at line 260 of file cryptlib.h.
|
inline |
Construct an OS_Error.
errorType | the error type |
s | the message for the exception |
operation | the operation for the exception |
errorCode | the error code |
The member function what()
returns s
.
Definition at line 268 of file cryptlib.h.
|
inline |
Retrieve the operating system API that reported the error.
Definition at line 272 of file cryptlib.h.
|
inline |
Retrieve the error code returned by the operating system.
Definition at line 274 of file cryptlib.h.