Wt  4.11.1
Public Member Functions | List of all members
Wt::WInvalidFormatException Class Reference

The exception thrown when a supplied format was not correct. More...

#include <Wt/Exception/WInvalidFormatException.h>

Inheritance diagram for Wt::WInvalidFormatException:
[legend]

Public Member Functions

 WInvalidFormatException (const std::string &what)
 Creates the invalid format exception.
 
 WInvalidFormatException (const std::string &what, const std::exception &wrapped)
 Creates the invalid format exception from another exception. More...
 
- Public Member Functions inherited from Wt::WException
 WException (const std::string &what)
 Creates an exception.
 
 WException (const std::string &what, const std::exception &wrapped)
 Creates an exception.
 
virtual ~WException () throw ()
 Destructor.
 
virtual const char * what () const override throw ()
 Returns the message.
 
void setMessage (const std::string &msg)
 Sets the message.
 

Detailed Description

The exception thrown when a supplied format was not correct.

If the developer or user is required to enter a format, this format should adhere to certain conventions. Formatting can be interpreted as a regex, a self-defined format (see: WDate::toString() for example), or any input that supplies the rules for another field or value.

Constructor & Destructor Documentation

◆ WInvalidFormatException()

Wt::WInvalidFormatException::WInvalidFormatException ( const std::string &  what,
const std::exception &  wrapped 
)

Creates the invalid format exception from another exception.

It is possible to wrap the WInvalidFormatException around an existing exception. The wrapped exception's description (see: https://en.cppreference.com/w/cpp/error/exception/what) will then be appended to this exception's description.