ponder 3.2
C++ reflection library
ponder::BadArgument Class Reference

Error thrown when providing a function argument which is incompatible with what the function expects. More...

#include <errors.hpp>

+ Inheritance diagram for ponder::BadArgument:

Public Member Functions

 BadArgument (ValueKind provided, ValueKind expected, size_t index, IdRef functionName)
 Constructor. More...
 
- Public Member Functions inherited from ponder::BadType
 BadType (ValueKind provided, ValueKind expected)
 Constructor. More...
 
- Public Member Functions inherited from ponder::Error
virtual ~Error () throw ()
 Destructor.
 
virtual const char * what () const throw ()
 Return a description of the error. More...
 
virtual const char * where () const throw ()
 Return the error location (file + line + function) More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ponder::Error
template<typename T >
static T prepare (T error, const String &file, int line, const String &function)
 Prepare an error to be thrown. More...
 

Detailed Description

Error thrown when providing a function argument which is incompatible with what the function expects.

Constructor & Destructor Documentation

◆ BadArgument()

ponder::BadArgument::BadArgument ( ValueKind  provided,
ValueKind  expected,
size_t  index,
IdRef  functionName 
)

Constructor.

Parameters
providedProvided type
expectedExpected type
indexIndex of the argument in the function prototype
functionNameName of the function

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