CPN
Computational Process Networks
Public Member Functions | Protected Attributes | Private Attributes | List of all members
CPN::BrokenQueueException Class Reference

An exception indicating that the node tried to write to a shutdown queue. More...

#include <Exceptions.h>

+ Inheritance diagram for CPN::BrokenQueueException:
+ Collaboration diagram for CPN::BrokenQueueException:

Public Member Functions

 BrokenQueueException (Key_t key) throw ()
 
 ~BrokenQueueException () throw ()
 
const char * what () const throw ()
 
std::string GetStackTrace () const
 

Protected Attributes

std::string stacktrace
 

Private Attributes

std::string msg
 

Detailed Description

An exception indicating that the node tried to write to a shutdown queue.

Definition at line 65 of file Exceptions.h.

Constructor & Destructor Documentation

CPN::BrokenQueueException::BrokenQueueException ( Key_t  key)
throw (
)

Definition at line 35 of file Exceptions.cc.

36  : Exception(3)
37  {
38  std::ostringstream oss;
39  oss << "Queue endpoint " << key << " shutdown abnormally.";
40  msg = oss.str();
41  }
Exception(int ignore=2)
Definition: Exception.cc:27
CPN::BrokenQueueException::~BrokenQueueException ( )
throw (
)

Definition at line 43 of file Exceptions.cc.

43 {}

Member Function Documentation

std::string Exception::GetStackTrace ( ) const
inlineinherited
Returns
the stack trace.

Definition at line 40 of file Exception.h.

References Exception::stacktrace.

Referenced by ErrnoException::ErrnoException().

40 { return stacktrace; }
std::string stacktrace
Definition: Exception.h:42

+ Here is the caller graph for this function:

const char* CPN::BrokenQueueException::what ( ) const
throw (
)
inline

Definition at line 69 of file Exceptions.h.

69 { return msg.c_str(); }

Member Data Documentation

std::string CPN::BrokenQueueException::msg
private

Definition at line 71 of file Exceptions.h.

std::string Exception::stacktrace
protectedinherited

Definition at line 42 of file Exception.h.

Referenced by Exception::GetStackTrace().


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