Wt: Wt::WInvalidOperationException Class Reference

Wt 4.10.4

Loading...
Searching...
No Matches
Public Member Functions | List of all members
Wt::WInvalidOperationException Class Reference

The exception thrown when an numeric operation could not execute. More...

`#include <Wt/Exception/WInvalidOperationException.h>`

Inheritance diagram for Wt::WInvalidOperationException:
[legend]

## Public Member Functions
| WInvalidOperationException (const std::string &what)
| Creates the invalid operation exception.
| WInvalidOperationException (const std::string &what, const std::exception &wrapped)
| Creates the invalid operation exception from another exception.
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 an numeric operation could not execute.

When a numeric operation is called, this can encounter an exception. This exception can for example be a division be 0.

## Constructor & Destructor Documentation

## ◆ WInvalidOperationException()

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

Creates the invalid operation exception from another exception.

It is possible to wrap the WInvalidOperationException 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.