AtomicError | @tomic

Atomic Data Errors have an additional Type, which tells the client what kind of error to render.

Hierarchy

  • Error

    Hierarchy

    • AtomicError

Constructors

constructor

  • new AtomicError(message: string, type?: ErrorType): AtomicError
  • Creates an AtomicError. The message can be either a plain string, or a JSON-AD Error Resource

    Parameters

    Returns AtomicError

Properties

type

Methods

createMessage

  • createMessage(): string
  • Returns string

Static fromResource