31 #include "Exception.h"
43 const char* Exception::what()
const throw()
55 snprintf(buf,
sizeof(buf),
"xplra::IOException: error code=%lu",
64 long parameter)
throw() :
66 hasParameter(parameter),
71 message =
"xplra::ProtocolException: invalid command";
74 message =
"xplra::ProtocolException: unknown dataref";
77 snprintf(buf,
sizeof(buf),
" (# %ld)", parameter);
82 message =
"xplra::ProtocolException: invalid type";
85 message =
"xplra::ProtocolException: invalid length";
88 message =
"xplra::ProtocolException: invalid offset";
91 message =
"xplra::ProtocolException: invalid count";
94 message =
"xplra::ProtocolException: invalid ID";
96 case INVALID_DURATION:
97 message =
"xplra::ProtocolException: invalid duration";
100 message =
"xplra::ProtocolException: other error";
103 message =
"xplra::ProtocolException: unknown error";
unsigned long errorCode_t
IOException(errorCode_t errorCode)
ProtocolException(errorCode_t errorCode, bool hasParameter=false, long parameter=0)