Diluculum::TypeMismatchError Class Reference

#include <LuaExceptions.hpp>

Inheritance diagram for Diluculum::TypeMismatchError:

Inheritance graph
[legend]
Collaboration diagram for Diluculum::TypeMismatchError:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TypeMismatchError (const std::string &expectedType, const std::string &foundType)
 ~TypeMismatchError () throw ()
std::string getExpectedType () const
 Returns the type that was expected.
std::string getFoundType () const
 Returns the type that was actually found.

Private Attributes

std::string expectedType_
 The type that was expected.
std::string foundType_
 The type that was actually found.

Detailed Description

An error that happens when a certain type is expected but another one is found.

Definition at line 140 of file LuaExceptions.hpp.


Constructor & Destructor Documentation

Diluculum::TypeMismatchError::TypeMismatchError const std::string &  expectedType,
const std::string &  foundType
 

Constructs a TypeMismatchError object.

Parameters:
expectedType The type that was expected.
foundType The type that was actually found.

Diluculum::TypeMismatchError::~TypeMismatchError  )  throw () [inline]
 

Destroys a TypeMismatchError object.

Note:
This was defined just to pretend that the destructor does not throw any exception. While this is something that I cannot guarantee (at least with this implementation), I believe this not a very dangerous lie.

Definition at line 156 of file LuaExceptions.hpp.


Member Function Documentation

std::string Diluculum::TypeMismatchError::getExpectedType  )  const [inline]
 

Returns the type that was expected.

Definition at line 159 of file LuaExceptions.hpp.

References expectedType_.

std::string Diluculum::TypeMismatchError::getFoundType  )  const [inline]
 

Returns the type that was actually found.

Definition at line 162 of file LuaExceptions.hpp.

References foundType_.


Member Data Documentation

std::string Diluculum::TypeMismatchError::expectedType_ [private]
 

The type that was expected.

Definition at line 166 of file LuaExceptions.hpp.

Referenced by getExpectedType().

std::string Diluculum::TypeMismatchError::foundType_ [private]
 

The type that was actually found.

Definition at line 169 of file LuaExceptions.hpp.

Referenced by getFoundType().


The documentation for this class was generated from the following file:
Generated on Tue Feb 6 09:30:26 2007 for Diluculum by  doxygen 1.4.6