X-Plane Remote Access Plugin and Client Library
|
#include <Exception.h>
Public Types | |
enum | errorCode_t { INVALID_COMMAND = 1 , UNKNOWN_DATAREF = 2 , INVALID_TYPE = 3 , INVALID_LENGTH = 4 , INVALID_OFFSET = 5 , INVALID_COUNT = 6 , INVALID_ID = 7 , INVALID_DURATION = 8 , OTHER = 255 } |
Public Member Functions | |
ProtocolException (errorCode_t errorCode, bool hasParameter=false, long parameter=0) throw () | |
errorCode_t | getErrorCode () const throw () |
bool | getParameter (long ¶m) const throw () |
Public Member Functions inherited from hu::varadiistvan::xplra::Exception | |
Exception (const char *message) throw () | |
virtual | ~Exception () throw () |
virtual const char * | what () const throw () |
Private Attributes | |
errorCode_t | errorCode |
bool | hasParameter |
long | parameter |
Additional Inherited Members | |
Protected Member Functions inherited from hu::varadiistvan::xplra::Exception | |
Exception () throw () | |
Protected Attributes inherited from hu::varadiistvan::xplra::Exception | |
std::string | message |
An exception arising from the invalid use of the protocol, e.g. an invalid dataref.
Definition at line 117 of file Exception.h.
Type for the error codes.
Definition at line 123 of file Exception.h.
ProtocolException::ProtocolException | ( | errorCode_t | errorCode, |
bool | hasParameter = false , |
||
long | parameter = 0 |
||
) | |||
throw | ( | ||
) |
Construct the exception.
Definition at line 63 of file Exception.cc.
|
inline |
Get the error code.
Definition at line 264 of file Exception.h.
|
inline |
Get the value of the parameter and whether it is valid or not.
Definition at line 271 of file Exception.h.
|
private |
The error code.
Definition at line 156 of file Exception.h.
|
private |
Indicate if the parameter is valid.
Definition at line 161 of file Exception.h.
|
private |
Parameter of the error.
Definition at line 166 of file Exception.h.