Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/errors

Index

Functions

Const getFetchError

  • getFetchError(): Error
  • description

    Returns an instance of error with the name set to FetchError

    Returns Error

    error with name set to FetchError

Const getInvalidStateMachineActionError

  • getInvalidStateMachineActionError(action: string, state: string): Error
  • description

    Returns an instance of error with the name set to FetchError

    Parameters

    • action: string
    • state: string

    Returns Error

    error with name set to FetchError

Const getJsonParseError

  • getJsonParseError(): Error
  • description

    Returns an instance of error with the name set to JsonParseError

    Returns Error

    error with name set to JsonParseError

Const isAbortError

  • isAbortError(valueToCheck: unknown): boolean
  • description

    Decides if the value is an abort error

    Parameters

    • valueToCheck: unknown

      The value to check

    Returns boolean

    Whether or not the value is an abort error

Const isError

  • isError(valueToCheck: unknown): valueToCheck is Error
  • description

    Checks whether or not the value passed in is an instance of Error

    Parameters

    • valueToCheck: unknown

      The value to check

    Returns valueToCheck is Error

    Type casting if the value is an error

Const isFetchError

  • isFetchError(valueToCheck: unknown): boolean
  • description

    Decides if the value is an abort error

    Parameters

    • valueToCheck: unknown

      The value to check

    Returns boolean

    Whether or not the value is an abort error

Const isInvalidStateMachineActionError

  • isInvalidStateMachineActionError(valueToCheck: unknown): boolean
  • description

    Decides if the value is an invalid state machine action error

    Parameters

    • valueToCheck: unknown

      The value to check

    Returns boolean

    Whether or not the value is an invalid state machine action error

Const isJsonParseError

  • isJsonParseError(valueToCheck: unknown): boolean
  • description

    Checks if the value is a json parse error

    Parameters

    • valueToCheck: unknown

      The value to check

    Returns boolean

    Whether or not the value is a json parse error

Generated using TypeDoc