interfaces errors - wxyz-abcd/node-haxball GitHub Wiki

Errors

All properties and classes about global error handling reside in this object.

1. Properties

1.1. ErrorCodes

Name to integer mapping that shortly describes the error codes used in HBError class. Note that this is the same object as Language.indices.ErrorCodes.

2. Classes

2.1. HBError

This is the class that is instantiated while any error is being thrown from the API.

2.1.1. Properties

  • code: int: The error code that has been thrown.
  • params: object[]: Parameters for the error.

2.1.2. Functions

  • toString(): string

    Returns the full description of the current error object depending on the API's current language.

    Parameters: None.

    Return value: Full description of this error object in the API's current language.

⚠️ **GitHub.com Fallback** ⚠️