Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TimerError

This class represents errors that occur during the operation of basic timers, timers and stopwatches.

It has static methods able to create TimerError instances with generic error messages.

Hierarchy

Index

Properties

message

message: string

name

name: string

Optional stack

stack: undefined | string

Static Error

Error: ErrorConstructor

Accessors

[Symbol.toStringTag]

  • get [Symbol.toStringTag](): string
  • Gets a string representation of the TimerError class, used by the built-in Object.prototype.toString.

    Returns string

Methods

Static timerAlreadyPaused

  • Creates and returns a new TimerError instance for when the timer is already paused.

    Parameters

    • Default value type: string = "timer"

    Returns TimerError

Static timerAlreadyStarted

  • Creates and returns a new TimerError instance for when the timer has already started.

    Parameters

    • Default value type: string = "timer"

    Returns TimerError

Static timerNotPaused

Static timerNotStarted

  • Creates and returns a new TimerError instance for when the timer has not yet started.

    Parameters

    • Default value type: string = "timer"

    Returns TimerError

Generated using TypeDoc