Class

IllegalArgument

base/error#IllegalArgument(messageopt) → {Error}

Constructor

# new IllegalArgument(messageopt) → {Error}

A constructor function that creates the illegalArgument error object. An illegalArgument error object is used to represent an error when a function received an unexpected argument.

Parameters:
Name Type Attributes Description
message String <optional>

Human-readable description of the error.

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

Error