NEOCCA bindings Specification  0.2.8
Public Member Functions | Private Attributes | List of all members
neo::cca::TypeMismatchException Class Reference

Exception occuring when a get or put operation specifies incorrect data type for a given key already defined in the map. More...

#include <TypeMismatchException.hh>

Inheritance diagram for neo::cca::TypeMismatchException:
Inheritance graph
[legend]
Collaboration diagram for neo::cca::TypeMismatchException:
Collaboration graph
[legend]

Public Member Functions

 TypeMismatchException (enum Type requestedType, enum Type actualType, const ::std::string &message)
 
virtual ~TypeMismatchException () throw ()
 
Type getRequestedType ()
 
Type getActualType ()
 
- Public Member Functions inherited from neo::cca::Exception
virtual ~Exception () throw ()
 
virtual const char * what ()
 
 Exception (enum ExceptionType t, const ::std::string &message) throw ()
 
 Exception (enum ExceptionType t) throw ()
 
 Exception () throw ()
 
 Exception (const ::std::string &message) throw ()
 
enum ExceptionType getType ()
 
::std::string getMessage ()
 string form of std::exception::what(). More...
 
void setType (enum ExceptionType t)
 
void setMessage (const ::std::string &message)
 

Private Attributes

enum Type rt
 
enum Type at
 

Detailed Description

Exception occuring when a get or put operation specifies incorrect data type for a given key already defined in the map.

Constructor & Destructor Documentation

◆ TypeMismatchException()

neo::cca::TypeMismatchException::TypeMismatchException ( enum Type  requestedType,
enum Type  actualType,
const ::std::string &  message 
)
inline
23  {
24  rt = requestedType;
25  at = actualType;
26  setMessage(message);
28  }
void setType(enum ExceptionType t)
Definition: Exception.hh:75
Definition: Exception.hh:19
enum Type at
Definition: TypeMismatchException.hh:18
void setMessage(const ::std::string &message)
Definition: Exception.hh:77
enum Type rt
Definition: TypeMismatchException.hh:17

◆ ~TypeMismatchException()

virtual neo::cca::TypeMismatchException::~TypeMismatchException ( )
throw (
)
inlinevirtual
30 {}

Member Function Documentation

◆ getRequestedType()

Type neo::cca::TypeMismatchException::getRequestedType ( )
inline
Returns
the enumerated value Type sought
33 { return rt; }
enum Type rt
Definition: TypeMismatchException.hh:17

◆ getActualType()

Type neo::cca::TypeMismatchException::getActualType ( )
inline
Returns
the enumerated value Type sought
35 { return at; }
enum Type at
Definition: TypeMismatchException.hh:18

Member Data Documentation

◆ rt

enum Type neo::cca::TypeMismatchException::rt
private

◆ at

enum Type neo::cca::TypeMismatchException::at
private

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