Boost Exception

exception::what

virtual char const * what() const throw();

Returns:

The default implementation is equivalent to return exception::diagnostic_information(). The signature of boost::exception::what is identical to the familiar std::exception::what function, so that when an exception type that derives both std::exception and boost::exception overrides the what function, it overrides both std::exception::what and boost::exception::what.

Throws:

Nothing.

Note:

The return value remains valid until the exception object from which it is obtained is destroyed or modified.

See also: