Options
All
  • Public
  • Public/Protected
  • All
Menu

This error indicates that the given input could not be recognized as the type it was supposed to be.

Hierarchy

  • Error
    • TypeMismatchError

Index

Constructors

  • new TypeMismatchError(dataType: Type, input: any, variableName: string, specificity: number, reason: string): TypeMismatchError

Properties

dataType: Type
input: any
reason: string
specificity: number

Specificity is used to determine which error to display; the error with the highest specificity will be used.

Specificity 0: Only for use by the dispatcher

Specificity 1: The user shouldn't see this

Specificity 2: For always-error fallbacks

Specificity 3: For failure to get a good response on yielding

Specificity 4: More specific errors thrown from a semi-generic case

Specificity 5: Specific errors thrown from specific cases

Specificity 6: For one specific error that could use it :P

variableName: string

Generated using TypeDoc