Construct a class failure.
explicit failure(const string& msg);
The function failure() constructs a class failure initializing with exception(msg).