Throws constructor
Create a new instance of Throws to be used as an annotation on a declaration
that can throw a set of particular exceptions or errors passed to expectedErrors
or any exception if the expectedErrors
is not specified.
Implementation
const Throws([this.expectedErrors]);