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.