Class

Generic

base/error#Generic(nameopt, messageopt) → {Error}

Constructor

# new Generic(nameopt, messageopt) → {Error}

A constructor function that creates a generic custom error for XDK library. The function is used by a few XDK modules that creates custom error objects that cannot be categories by one of the properties listed in this module.

Parameters:
Name Type Attributes Description
name String <optional>

Name of the error.

message String <optional>

Human-readable description of the error.

Custom error object, which is an instance of module:base/error#Generic which in turn inherit from module:base/error#XDKError.

Error