public get name():string
The get accessor obtains error name of a string type, set to 'TypeError' that is being thrown.
public get type():Type | undefined
The get accessor obtains the type of generic type variable Type that causes an error to be thrown(or not thrown) if set, otherwise returns undefined.