NEOCCA bindings Specification  0.2.8
TypeMismatchException.hh
Go to the documentation of this file.
1 #ifndef neo_TypeMismatchException_hh_seen
2 #define neo_TypeMismatchException_hh_seen
3 
4 /* A file of auxiliaries that mainly distract the new reader. */
5 
6 namespace neo {
7 namespace cca {
8 
9 
15 {
16 private:
17  enum Type rt;
18  enum Type at;
19 
20 public:
21 
22  TypeMismatchException(enum Type requestedType, enum Type actualType, const ::std::string & message)
23  {
24  rt = requestedType;
25  at = actualType;
26  setMessage(message);
28  }
29 
30  virtual ~TypeMismatchException() throw (){}
31 
33  Type getRequestedType() { return rt; }
35  Type getActualType() { return at; }
36 
37 };
38 
39 } // end namespace cca
40 } // end namespace neo
41 
42 #endif // neo_TypeMismatchException_hh_seen
TypeMismatchException(enum Type requestedType, enum Type actualType, const ::std::string &message)
Definition: TypeMismatchException.hh:22
Type
Mapping of sidl/java primitive types and arrays to occuring in the TypeMap interface to integers...
Definition: Type.hh:14
void setType(enum ExceptionType t)
Definition: Exception.hh:75
This class extends the STL std::exception to allow the thrower to specify the message that the stl sa...
Definition: Exception.hh:48
Type getActualType()
Definition: TypeMismatchException.hh:35
Exception occuring when a get or put operation specifies incorrect data type for a given key already ...
Definition: TypeMismatchException.hh:14
Definition: Exception.hh:19
Type getRequestedType()
Definition: TypeMismatchException.hh:33
enum Type at
Definition: TypeMismatchException.hh:18
void setMessage(const ::std::string &message)
Definition: Exception.hh:77
This is neoclassic – the ::classic::gov::cca headers updated to be similar to the official CCA speci...
Definition: neocca.hh:62
enum Type rt
Definition: TypeMismatchException.hh:17
virtual ~TypeMismatchException()
Definition: TypeMismatchException.hh:30