Optional
message: stringcheck if function throws an error matching the constructor
Optional
message: stringcheck if function throws an error matching the regex
Optional
message: stringcheck if function throws an error matching the predicate function
Optional
message: string
check if function throws an error