|
xorp
|
All known error codes arising from XRL dispatches. More...
#include <xrl_error.hh>
Public Member Functions | |
| XrlErrorCode | error_code () const |
| bool | isOK () const |
| const char * | error_msg () const |
| const string & | note () const |
| string | str () const |
| XrlError (XrlErrorCode error_code, const string ¬e="") | |
| XrlError (const XrlError &xe) | |
| XrlError (const XrlErrlet &x, const string ¬e="") | |
| XrlError (const XrlErrlet *) | |
Static Public Member Functions | |
| static const XrlError & | OKAY () |
| The value that should be returned by functions whose execution completed normally. | |
| static const XrlError & | BAD_ARGS () |
| The value that should be returned when the arguments in an XRL do not match what the receiver expected. | |
| static const XrlError & | COMMAND_FAILED () |
| The value that should be returned when the command cannot be executed by Xrl Target. | |
| static const XrlError & | NO_FINDER () |
| The Xrl Finder process is not running or not ready to resolve Xrl target names. | |
| static const XrlError & | RESOLVE_FAILED () |
| Returned when an XRL cannot be dispatched because the target name is not registered in the system. | |
| static const XrlError & | NO_SUCH_METHOD () |
| Returned when the method within the XRL is not recognized by the receiver. | |
| static const XrlError & | SEND_FAILED () |
| Returned when the underlying XRL transport mechanism fails. | |
| static const XrlError & | REPLY_TIMED_OUT () |
| Returned when the reply is not returned within the timeout period of the underlying transport mechanism. | |
| static const XrlError & | SEND_FAILED_TRANSIENT () |
| Returned when the underlying XRL transport mechanism fails. | |
| static const XrlError & | INTERNAL_ERROR () |
| An error has occurred within the XRL system. | |
| static bool | known_code (uint32_t code) |
Protected Attributes | |
| const XrlErrlet * | _errlet |
| string | _note |
All known error codes arising from XRL dispatches.
These include underlying transport, transport location, and invocation failures.
This class can be sub-classed to provide a sub-set of the known errors, and also to append domain specific errors.
| XrlErrorCode XrlError::error_code | ( | ) | const |
| const char * XrlError::error_msg | ( | ) | const |
| static const XrlError& XrlError::INTERNAL_ERROR | ( | ) | [static] |
| bool XrlError::known_code | ( | uint32_t | code | ) | [static] |
| const string& XrlError::note | ( | ) | const [inline] |
| string XrlError::str | ( | ) | const [inline] |