It is a base class for stream exceptions.
Following is the declaration for std::ios_base::failure.
No-throw guarantee − no members throw exceptions.
|1||what||It is used to get string identifying exception|
|1||code||It is used to get error code|
|2||what||It is used to get message associated to exception|