Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CustomError

Error type that allows for a customized message.

Hierarchy

  • CustomError

Index

Constructors

Properties

Methods

Constructors

constructor

  • Construct an instance of CustomerError.

    Parameters

    • message: string

      The human readable message that justifies the failure.

    Returns CustomError

Properties

kind

kind: "custom-error" = "custom-error"

Type discriminator

message

message: string

The human readable message that justifies the failure.

Methods

toString

  • toString(): string
  • Provides a human readable representation of the value. Mostly for debugging.

    Returns string