public member function


exception& operator= (const exception& e) throw();
exception& operator= (const exception& e) noexcept;
Copy exception
Copies an exception object.

The effects of calling member what after the assignment depend on the particular library implementation.
Every exception within the C++ standard library (including this) has, at least, a copy assignment operator overload that preserves the string representation returned by member what when the dynamic types match.


Another exception object.

Exception safety

No-throw guarantee: this member function never throws exceptions.
This also applies to all derived classes within the C++ standard library.

See also