Dashel::DashelException Class Reference

The one size fits all exception for streams. More...

#include <dashel.h>

List of all members.

Public Types

enum  Source {
  Unknown, SyncError, InvalidTarget, InvalidOperation,
  ConnectionLost, IOError, ConnectionFailed, EnumerationError,
  PreviousIncomingDataNotRead, Unknown, SyncError, InvalidTarget,
  InvalidOperation, ConnectionLost, IOError, ConnectionFailed,
  EnumerationError, PreviousIncomingDataNotRead
}
 

The different exception causes.

More...
enum  Source {
  Unknown, SyncError, InvalidTarget, InvalidOperation,
  ConnectionLost, IOError, ConnectionFailed, EnumerationError,
  PreviousIncomingDataNotRead, Unknown, SyncError, InvalidTarget,
  InvalidOperation, ConnectionLost, IOError, ConnectionFailed,
  EnumerationError, PreviousIncomingDataNotRead
}
 

The different exception causes.

More...

Public Member Functions

 DashelException (Source s, int se, const char *reason, Stream *stream=NULL)
 Construct an stream exception with everything.
 DashelException (Source s, int se, const char *reason, Stream *stream=NULL)
 Construct an stream exception with everything.

Public Attributes

Source source
 The exception cause.
Streamstream
 The stream that caused the exception to be thrown.
int sysError
 The reason as an OS error code.

Detailed Description

The one size fits all exception for streams.

The reason of the failure is stored in the runtime error, and is returned by what()

Definition at line 143 of file dashel.h.


Member Enumeration Documentation

The different exception causes.

Enumerator:
Unknown 

Well, hopefully never used.

SyncError 

Some synchronisation error.

InvalidTarget 

The target string was bad.

InvalidOperation 

The operation is not valid on this stream.

ConnectionLost 

The connection was lost.

IOError 

Some I/O error.

ConnectionFailed 

The connection could not be established.

EnumerationError 

Some serial enumeration error.

PreviousIncomingDataNotRead 

The incoming data was not read by the Hub subclass.

Unknown 

Well, hopefully never used.

SyncError 

Some synchronisation error.

InvalidTarget 

The target string was bad.

InvalidOperation 

The operation is not valid on this stream.

ConnectionLost 

The connection was lost.

IOError 

Some I/O error.

ConnectionFailed 

The connection could not be established.

EnumerationError 

Some serial enumeration error.

PreviousIncomingDataNotRead 

The incoming data was not read by the Hub subclass.

Definition at line 147 of file dashel.h.

The different exception causes.

Enumerator:
Unknown 

Well, hopefully never used.

SyncError 

Some synchronisation error.

InvalidTarget 

The target string was bad.

InvalidOperation 

The operation is not valid on this stream.

ConnectionLost 

The connection was lost.

IOError 

Some I/O error.

ConnectionFailed 

The connection could not be established.

EnumerationError 

Some serial enumeration error.

PreviousIncomingDataNotRead 

The incoming data was not read by the Hub subclass.

Unknown 

Well, hopefully never used.

SyncError 

Some synchronisation error.

InvalidTarget 

The target string was bad.

InvalidOperation 

The operation is not valid on this stream.

ConnectionLost 

The connection was lost.

IOError 

Some I/O error.

ConnectionFailed 

The connection could not be established.

EnumerationError 

Some serial enumeration error.

PreviousIncomingDataNotRead 

The incoming data was not read by the Hub subclass.

Definition at line 147 of file dashel.h.


Constructor & Destructor Documentation

Dashel::DashelException::DashelException ( Source  s,
int  se,
const char *  reason,
Stream stream = NULL 
)

Construct an stream exception with everything.

Parameters:
s Source of failure
se System error code.
reason The logical reason as a human readable string.
stream Stream to which exception applies.

Definition at line 93 of file dashel-common.cpp.

Dashel::DashelException::DashelException ( Source  s,
int  se,
const char *  reason,
Stream stream = NULL 
)

Construct an stream exception with everything.

Parameters:
s Source of failure
se System error code.
reason The logical reason as a human readable string.
stream Stream to which exception applies.

Member Data Documentation

The exception cause.

Definition at line 160 of file dashel.h.

The stream that caused the exception to be thrown.

Definition at line 164 of file dashel.h.

The reason as an OS error code.

Definition at line 162 of file dashel.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


asebaros
Author(s): $author
autogenerated on Mon Sep 5 08:42:16 2011