Xpace
Xpace::IncompatibleType< T > Class Template Reference

Thrown when you ask for a type that cannot be converted E.g., asking for string data as an int64. More...

#include <data.h>

Inheritance diagram for Xpace::IncompatibleType< T >:
Xpace::Exception

Public Member Functions

 IncompatibleType (BaseDataType fromType, BaseDataType toType)
 
 IncompatibleType (BaseDataType fromType)
 
template<>
 IncompatibleType (BaseDataType fromType)
 
template<>
 IncompatibleType (BaseDataType fromType)
 
- Public Member Functions inherited from Xpace::Exception
 Exception ()
 
 Exception (const Exception &)
 
Exceptionoperator= (const Exception &)
 
virtual ~Exception () throw ()
 
bool operator! () const
 
const Exception why () const
 
const char * versionInfo () const
 
const String getTemplate () const
 
String getMessage (const String &templ=String()) const
 Construct an error message. More...
 
const char * what () const throw ()
 

Additional Inherited Members

- Protected Member Functions inherited from Xpace::Exception
 Exception (const String &templ, const Exception reason=Exception())
 
void addParam (const String &p)
 Add a parameter to this exception The first parameter added will replace '%1' in the template, the second will replace '%2', and so on. More...
 

Detailed Description

template<typename T = void>
class Xpace::IncompatibleType< T >

Thrown when you ask for a type that cannot be converted E.g., asking for string data as an int64.

Parameters
Tthe to-type

Definition at line 425 of file data.h.

Constructor & Destructor Documentation

template<typename T >
Xpace::IncompatibleType< T >::IncompatibleType ( BaseDataType  fromType,
BaseDataType  toType 
)
inline
Parameters
fromTypethe actual type in the Table
toTypethe requested type

Definition at line 560 of file data.h.

References Xpace::BaseDataType::getName().

Referenced by Xpace::DerivedDataType::getDerivedType(), and Xpace::IncompatibleType< T >::IncompatibleType().

template<typename T = void>
Xpace::IncompatibleType< T >::IncompatibleType ( BaseDataType  fromType)
Parameters
fromTypethe actual type in the Table NB takes toType from the template param
template<>
Xpace::IncompatibleType< String16 >::IncompatibleType ( BaseDataType  fromType)
inline

Definition at line 449 of file data.h.

References Xpace::BaseDataType::btString16.


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

current as of Wed Jun 10 2026 12:00:06