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

An exception indicating that there is a type mismatch in the queue. More...

#include <Exceptions.h>

+ Inheritance diagram for CPN::TypeMismatchException:
+ Collaboration diagram for CPN::TypeMismatchException:

Public Member Functions

 TypeMismatchException () throw ()
 
 TypeMismatchException (const std::string &type1, const std::string &type2) throw ()
 
 ~TypeMismatchException () throw ()
 
const char * what () const throw ()
 
std::string GetStackTrace () const
 

Protected Attributes

std::string stacktrace
 

Private Attributes

std::string message
 

Detailed Description

An exception indicating that there is a type mismatch in the queue.

Definition at line 49 of file Exceptions.h.

Constructor & Destructor Documentation

CPN::TypeMismatchException::TypeMismatchException ( )
throw (
)
inline

Definition at line 51 of file Exceptions.h.

51 : Exception(3), message("Queue types mismatch") {}
Exception(int ignore=2)
Definition: Exception.cc:27
CPN::TypeMismatchException::TypeMismatchException ( const std::string &  type1,
const std::string &  type2 
)
throw (
)
inline

Definition at line 52 of file Exceptions.h.

52  {
53  message = "Queue types " + type1 + " != " + type2;
54  }
CPN::TypeMismatchException::~TypeMismatchException ( )
throw (
)

Definition at line 33 of file Exceptions.cc.

33 {}

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::TypeMismatchException::what ( ) const
throw (
)
inline

Definition at line 56 of file Exceptions.h.

56 { return message.c_str(); }

Member Data Documentation

std::string CPN::TypeMismatchException::message
private

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