CS202 5- ‹#›
Exception Specifications
nAn exception specification consists of the throw keyword followed by a list of exception types enclosed in parentheses.
nThe exception specification is the last item in a function declaration or function header.
nThe list may be empty.
nThis guarantees that the function will not throw any exceptions.
nA non empty list guarantees that the function will only throw exceptions of the type(s) specified in the list.
nIf the exception specification is absent, the function can throw any type of exception.