Collage  1.5.0
High-performance C++ library for developing object-oriented distributed applications.
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, 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.

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 44 of file exception.h.

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

Destruct this exception.

Version
1.0

Definition at line 47 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 50 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 53 of file exception.h.

References 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: