Returns a new UnexpectedTypeError instance.
The expected type or value.
The type or value actually received.
Optional
causeParsed stack trace.
Optional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stackProtected
prettyStatic
captureGenerated using TypeDoc
An error type thrown when a value is an unexpected type or value. Several features inherited from
See
XtError