C++ Exception Library - ios_base::failure



Description

It is a base class for stream exceptions.

Declaration

Following is the declaration for std::ios_base::failure.

class failure;

C++11

class failure;

Parameters

none

Return Value

none

Exceptions

No-throw guarantee − no members throw exceptions.

Member functions

C++98

Sr.No. Member functions Definition
1 what It is used to get string identifying exception

C++11

Sr.No. Member functions Definition
1 code It is used to get error code
2 what It is used to get message associated to exception
exception.htm
Advertisements