throws
The function qualifier throws is an antonym of the noexcept in C++. Functions not qualified as throws cannot throw exceptions, and violating so triggers compile errors.
Syntax
ReturnType methodIdentifier() throws { /* function body */ }
The function qualifier throws is an antonym of the noexcept in C++. Functions not qualified as throws cannot throw exceptions, and violating so triggers compile errors.
ReturnType methodIdentifier() throws { /* function body */ }