DBWrongTypeError Class Reference

Ratpac-two: RAT::DBWrongTypeError Class Reference
Ratpac-two
RAT::DBWrongTypeError Class Reference

#include <DBTable.hh>

Inheritance diagram for RAT::DBWrongTypeError:
RAT::DBNotFoundError

Public Member Functions

 DBWrongTypeError (const std::string &_table, const std::string &_index, const std::string &_field, RAT::DBTable::FieldType _requestedType, RAT::DBTable::FieldType _actualType)
 
bool operator== (const DBWrongTypeError &other) const
 
- Public Member Functions inherited from RAT::DBNotFoundError
 DBNotFoundError (const std::string &_table, const std::string &_index, const std::string &_field)
 
bool operator== (const DBNotFoundError &other) const
 

Public Attributes

RAT::DBTable::FieldType requestedType
 
RAT::DBTable::FieldType actualType
 
- Public Attributes inherited from RAT::DBNotFoundError
std::string table
 
std::string index
 
std::string field
 

Detailed Description

Exception: Field has wrong type in RATDB. Inherits from DBNotFoundError to work with existing code that only expects that exception.

Constructor & Destructor Documentation

◆ DBWrongTypeError()

RAT::DBWrongTypeError::DBWrongTypeError ( const std::string &  _table,
const std::string &  _index,
const std::string &  _field,
RAT::DBTable::FieldType  _requestedType,
RAT::DBTable::FieldType  _actualType 
)
inline

Create new exception.

Parameters
_tableName of table in which field could not be found with requested type
_indexIndex of table in which field could not be found with requested type
_fieldName of field which could not be found with requested type
_requestedTypeDBTable::FieldType requested
_actualTypeDBTable::FieldType actually present in database

Member Function Documentation

◆ operator==()

bool RAT::DBWrongTypeError::operator== ( const DBWrongTypeError other) const
inline

Compare if other has the same table, index and field as this.


The documentation for this class was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/db/include/RAT/DBTable.hh