Wt
4.11.0
|
The exception thrown when an numeric operation could not execute. More...
#include <Wt/Exception/WInvalidOperationException.h>
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. | |
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.
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.