class XrlError

All known error codes arising from XRL dispatches. More...

Definition#include <xrlerror.hh>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods

Protected Methods

Protected Members


Detailed Description

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.

const XrlError&  OKAY ()

OKAY

[static]

The value that should be returned by functions whose execution completed normally.

const XrlError&  BAD_ARGS ()

BAD_ARGS

[static]

The value that should be returned when the arguments in an XRL do not match what the receiver expected.

const XrlError&  COMMAND_FAILED ()

COMMAND_FAILED

[static]

The value that should be returned when the command cannot be executed by Xrl Target.

const XrlError&  RESOLVE_FAILED ()

RESOLVE_FAILED

[static]

Returned when an XRL cannot be dispatched because the target name is not registered in the system.

const XrlError&  NO_FINDER ()

NO_FINDER

[static]

The Xrl Finder process is not running or not ready to resolve Xrl target names

const XrlError&  SEND_FAILED ()

SEND_FAILED

[static]

Returned when the underlying XRL transport mechanism fails.

const XrlError&  REPLY_TIMED_OUT ()

REPLY_TIMED_OUT

[static]

Returned when the reply is not returned within the timeout period of the underlying transport mechanism.

const XrlError&  NO_SUCH_METHOD ()

NO_SUCH_METHOD

[static]

Returned when the method within the XRL is not recognized by the receiver.

const XrlError&  CORRUPT_XRL ()

CORRUPT_XRL

[static]

XRL appears to have been corrupted by transport protocol.

const XrlError&  CORRUPT_RESPONSE ()

CORRUPT_RESPONSE

[static]

XRL response appears to have been corrupted by transport protocol.

const XrlError&  SYSCALL_FAILED ()

SYSCALL_FAILED

[static]

System call failed in transport protocol implementation.

const XrlError&  BAD_PROTOCOL_VERSION ()

BAD_PROTOCOL_VERSION

[static]

Xrl transport protocol version mismatch.

const XrlError&  FAILED_UNKNOWN ()

FAILED_UNKNOWN

[static]

Unspecified error.

uint32_t  error_code ()

error_code

[const]

Returns: the unique identifer number associated with error.

const char*  error_msg ()

error_msg

[const]

Returns: string containing textual description of error.

const string&  note ()

note

[const]

Returns: string containing user annotation about source of error (if set).

inline string  str ()

str

[const]

Returns: string containing error_code(), error_msg(), and note().

bool  known_code (uint32_t code)

known_code

[static]

Returns: true if error_code corresponds to known error.

 XrlError ()

XrlError

 XrlError (uint32_t error_code, const string& note = "")

XrlError

 XrlError (const XrlError& xe)

XrlError

 XrlError (const XrlErrlet& x, const string& note = "")

XrlError

const XrlErrlet* _errlet

_errlet

[protected]

string _note

_note

[protected]

 XrlError (const XrlErrlet*)

XrlError

[protected]

static const XrlError E_OKAY

E_OKAY

[protected]

static const XrlError E_BAD_ARGS

E_BAD_ARGS

[protected]

static const XrlError E_COMMAND_FAILED

E_COMMAND_FAILED

[protected]

static const XrlError E_RESOLVE_FAILED

E_RESOLVE_FAILED

[protected]

static const XrlError E_NO_FINDER

E_NO_FINDER

[protected]

static const XrlError E_SEND_FAILED

E_SEND_FAILED

[protected]

static const XrlError E_REPLY_TIMED_OUT

E_REPLY_TIMED_OUT

[protected]

static const XrlError E_NO_SUCH_METHOD

E_NO_SUCH_METHOD

[protected]

static const XrlError E_CORRUPT_XRL

E_CORRUPT_XRL

[protected]

static const XrlError E_CORRUPT_RESPONSE

E_CORRUPT_RESPONSE

[protected]

static const XrlError E_BAD_PROTOCOL

E_BAD_PROTOCOL

[protected]

static const XrlError E_SYSCALL_FAILED

E_SYSCALL_FAILED

[protected]

static const XrlError E_FAILED_UNKNOWN

E_FAILED_UNKNOWN

[protected]


Generated by: pavlin on possum.icir.org on Wed Dec 11 16:50:42 2002, using kdoc 2.0a54+XORP.