Collage  1.0.1
Object-Oriented C++ Network Library
Public Types | Public Member Functions | List of all members
co::Exception Class Reference

A base Exception class for Collage operations. More...

#include <exception.h>

+ Inheritance diagram for co::Exception:
+ Collaboration diagram for co::Exception:

Public Types

enum  Type {
  TIMEOUT_WRITE, TIMEOUT_READ, TIMEOUT_BARRIER, TIMEOUT_COMMANDQUEUE,
  CUSTOM = 20
}
 The exception type. More...
 

Public Member Functions

 Exception (const uint32_t type)
 Construct a new Exception. More...
 
virtual ~Exception () throw ()
 Destruct this exception. More...
 
virtual uint32_t getType () const
 
virtual const char * what () const throw ()
 Output the exception in human-readable form. More...
 

Detailed Description

A base Exception class for Collage operations.

Definition at line 31 of file exception.h.

Member Enumeration Documentation

The exception type.

Version
1.0
Enumerator
TIMEOUT_WRITE 

A write timeout operation.

TIMEOUT_READ 

A read timeout operation.

TIMEOUT_BARRIER 

A barrier timeout operation.

TIMEOUT_COMMANDQUEUE 

A timeout on a cmd queue operation.

CUSTOM 

Application-specific exceptions.

Definition at line 35 of file exception.h.

Constructor & Destructor Documentation

co::Exception::Exception ( const uint32_t  type)
inline

Construct a new Exception.

Version
1.0

Definition at line 45 of file exception.h.

virtual co::Exception::~Exception ( )
throw (
)
inlinevirtual

Destruct this exception.

Version
1.0

Definition at line 48 of file exception.h.

Member Function Documentation

virtual uint32_t co::Exception::getType ( ) const
inlinevirtual
Returns
the type of this exception
Version
1.0

Definition at line 51 of file exception.h.

virtual const char* co::Exception::what ( ) const
throw (
)
inlinevirtual

Output the exception in human-readable form.

Version
1.0

Definition at line 54 of file exception.h.

References TIMEOUT_BARRIER, TIMEOUT_COMMANDQUEUE, TIMEOUT_READ, and TIMEOUT_WRITE.

Referenced by co::operator<<().

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: