Properties

new MethodError([message][, ...messageParams])

Creates a method argument error object.

Parameters

Name Type Optional Description

message

string

Yes

Human-readable description of the error.

messageParams

any type

Yes

Optional interpolation parameters of the message.

Value can be repeated.

Extends
Error
See also
Error for further information.

Properties

message  string

Human-readable description of the error.

name  string

The name of the error type.

Default value