Errors

Methods

(inner) createInvalidArgumentTypeError(message, argument, expected) → {Error}

Source:

Creates an error object to be thrown when an argument did not use the supported type

Parameters:
NameTypeDescription
messagestring

Error message to be displayed.

argumentstring

Argument name.

expectedstring

Expected argument datatype.

Returns:

instance detailing the error condition

Type
Error

(inner) createInvalidArgumentValueError(message, argument, value, reasonopt) → {Error}

Source:

Creates an error object to be thrown when an argument did not use the supported value

Parameters:
NameTypeAttributesDescription
messagestring

Error message to be displayed.

argumentstring

Argument name.

valuestring

Argument value.

reasonstring<optional>

Why value is invalid.

Returns:

instance detailing the error condition

Type
Error

(inner) createInvalidExceptionError(message) → {Error}

Source:

Creates an error object to be thrown when an exception was caught, but the Error is falsy or undefined.

Parameters:
NameTypeDescription
messagestring

Error message to be displayed.

Returns:

instance detailing the error condition

Type
Error

(inner) createInvalidInterfaceError(message, ui) → {Error}

Source:

Creates an error object to be thrown when the interface specified in the options was not found.

Parameters:
NameTypeDescription
messagestring

Error message to be displayed.

uistring

User-specified interface value.

Returns:

instance detailing the error condition

Type
Error

(inner) createInvalidReporterError(message, reporter) → {Error}

Source:

Creates an error object to be thrown when the reporter specified in the options was not found.

Parameters:
NameTypeDescription
messagestring

Error message to be displayed.

reporterstring

User-specified reporter value.

Returns:

instance detailing the error condition

Type
Error

(inner) createMissingArgumentError(message, argument, expected) → {Error}

Source:

Creates an error object to be thrown when an argument is missing.

Parameters:
NameTypeDescription
messagestring

Error message to be displayed.

argumentstring

Argument name.

expectedstring

Expected argument datatype.

Returns:

instance detailing the error condition

Type
Error

(inner) createNoFilesMatchPatternError(message, pattern) → {Error}

Source:

Creates an error object to be thrown when no files to be tested could be found using specified pattern.

Parameters:
NameTypeDescription
messagestring

Error message to be displayed.

patternstring

User-specified argument value.

Returns:

instance detailing the error condition

Type
Error

(inner) createUnsupportedError(message) → {Error}

Source:

Creates an error object to be thrown when a behavior, option, or parameter is unsupported.

Parameters:
NameTypeDescription
messagestring

Error message to be displayed.

Returns:

instance detailing the error condition

Type
Error