interfaces errors - wxyz-abcd/node-haxball GitHub Wiki
All properties and classes about global error handling reside in this object.
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
.
This is the class that is instantiated while any error is being thrown from the API.
-
code: int
: The error code that has been thrown. -
params: object[]
: Parameters for the error.
-
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.