Throws constructor

const Throws([
  1. Set<Type>? expectedErrors
])

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]);