Collage  1.1.2
High-performance C++ library for developing object-oriented distributed applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
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
 
const char * what () const override throw ()
 Output the exception in human-readable form. More...
 

Detailed Description

A base Exception class for Collage operations.

Definition at line 32 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 36 of file exception.h.

Constructor & Destructor Documentation

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

Construct a new Exception.

Version
1.0

Definition at line 46 of file exception.h.

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

Destruct this exception.

Version
1.0

Definition at line 49 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 52 of file exception.h.

const char* co::Exception::what ( ) const
throw (
)
inlineoverride

Output the exception in human-readable form.

Version
1.0

Definition at line 55 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: