Wt: Wt::Json::TypeException Class Reference

Wt 3.3.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions
Wt::Json::TypeException Class Reference
JSON Library (Wt::Json)

Exception that indicates a type error. More...

`#include <Wt/Json/Value>`

Inheritance diagram for Wt::Json::TypeException:
[legend]

List of all members.

## Public Member Functions
const std::string & | name () const
| Returns the object field name (if known)
Type | actualType () const
| Returns the value type.
Type | expectedType () const
| Returns the expected value type.

## Detailed Description

Exception that indicates a type error.

This exception is thrown when a Value is being casted to an incompatible C++ type.

Note:
  To avoid exceptions, coerce the type first, and handle Null values.

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator