ssrc::spread::Error Class Reference
Error is a container for a Spread error code and is thrown by the library in only truly exceptional circumstances. More...
#include <Error.h>
Inheritance diagram for ssrc::spread::Error:

Public Types | |
| enum | Code { AcceptSession = ACCEPT_SESSION, IllegalSpread = ILLEGAL_SPREAD, CouldNotConnect = COULD_NOT_CONNECT, RejectQuota = REJECT_QUOTA, RejectNoName = REJECT_NO_NAME, RejectIllegalName = REJECT_ILLEGAL_NAME, RejectNotUnique = REJECT_NOT_UNIQUE, RejectVersion = REJECT_VERSION, ConnectionClosed = CONNECTION_CLOSED, RejectAuth = REJECT_AUTH, IllegalSession = ILLEGAL_SESSION, IllegalService = ILLEGAL_SERVICE, IllegalMessage = ILLEGAL_MESSAGE, IllegalGroup = ILLEGAL_GROUP, BufferTooShort = BUFFER_TOO_SHORT, GroupsTooShort = GROUPS_TOO_SHORT, MessageTooLong = MESSAGE_TOO_LONG, NetErrorOnSession = NET_ERROR_ON_SESSION } |
Code is not a proper enumeration, but rather a specification of constants corresponding to Spread return and error codes. More... | |
Public Member Functions | |
| Error (const int err) | |
| Creates an Error instance containing the spcified error code. | |
| int | error () const |
| Returns the error code used to create the Error. | |
| void | print () const |
| Prints the message corresponding to the error via SP_error. | |
Detailed Description
Error is a container for a Spread error code and is thrown by the library in only truly exceptional circumstances.
Definition at line 38 of file Error.h.
Member Enumeration Documentation
Code is not a proper enumeration, but rather a specification of constants corresponding to Spread return and error codes.
We do not document the meaning of these codes. See the Spread C API documentation to understand their meaning.
Constructor & Destructor Documentation
| ssrc::spread::Error::Error | ( | const int | err | ) | [inline, explicit] |
Member Function Documentation
| int ssrc::spread::Error::error | ( | ) | const [inline] |
| void ssrc::spread::Error::print | ( | ) | const [inline] |
The documentation for this class was generated from the following file:
Copyright © 2006-2010 Savarese Software Research Corporation. All rights reserved.
Copyright © 2010 Savarese Software Research Corporation. All rights reserved