Name
ios_base::failure class — Exception class for I/O failure
Synopsis
class ios_base::failure : public exception
{
public:
explicit failure(const string& msg);
virtual ~failure( );
virtual const char* what( ) const throw( );
};
The ios_base::failure
class
is the base class for I/O-related exceptions. Its use of the
constructor’s msg
parameter and
what( )
member function are
consistent with the conventions of the exception
class.
See Also
basic_ios::clear
function,
exception
in <exception>
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.