It is defined (within the std namespace) as:
- explicit failure (const string& msg); (constructor)
- The value of string received as the msg parameter is internally stored and its C-string equivalent is returned by subsequent calls to what.
It effectively calls its parent class' constructor (exception::exception).
- virtual ~failure(); (destructor)
- No operation.
- virtual const char* what() const;
- Returns the C-string value equivalent to the msg argument used on its construction.