Methods
(inner) createInvalidArgumentTypeError(message, argument, expected) → {Error}
Creates an error object to be thrown when an argument did not use the supported type
Parameters:
Name | Type | Description |
---|---|---|
message | string | Error message to be displayed. |
argument | string | Argument name. |
expected | string | Expected argument datatype. |
Returns:
instance detailing the error condition
- Type
- Error
(inner) createInvalidArgumentValueError(message, argument, value, reasonopt) → {Error}
Creates an error object to be thrown when an argument did not use the supported value
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message | string | Error message to be displayed. | |
argument | string | Argument name. | |
value | string | Argument value. | |
reason | string | <optional> | Why value is invalid. |
Returns:
instance detailing the error condition
- Type
- Error
(inner) createInvalidExceptionError(message) → {Error}
Creates an error object to be thrown when an exception was caught, but the Error
is falsy or undefined.
Parameters:
Name | Type | Description |
---|---|---|
message | string | Error message to be displayed. |
Returns:
instance detailing the error condition
- Type
- Error
(inner) createInvalidInterfaceError(message, ui) → {Error}
Creates an error object to be thrown when the interface specified in the options was not found.
Parameters:
Name | Type | Description |
---|---|---|
message | string | Error message to be displayed. |
ui | string | User-specified interface value. |
Returns:
instance detailing the error condition
- Type
- Error
(inner) createInvalidReporterError(message, reporter) → {Error}
Creates an error object to be thrown when the reporter specified in the options was not found.
Parameters:
Name | Type | Description |
---|---|---|
message | string | Error message to be displayed. |
reporter | string | User-specified reporter value. |
Returns:
instance detailing the error condition
- Type
- Error
(inner) createMissingArgumentError(message, argument, expected) → {Error}
Creates an error object to be thrown when an argument is missing.
Parameters:
Name | Type | Description |
---|---|---|
message | string | Error message to be displayed. |
argument | string | Argument name. |
expected | string | Expected argument datatype. |
Returns:
instance detailing the error condition
- Type
- Error
(inner) createNoFilesMatchPatternError(message, pattern) → {Error}
Creates an error object to be thrown when no files to be tested could be found using specified pattern.
Parameters:
Name | Type | Description |
---|---|---|
message | string | Error message to be displayed. |
pattern | string | User-specified argument value. |
Returns:
instance detailing the error condition
- Type
- Error
(inner) createUnsupportedError(message) → {Error}
Creates an error object to be thrown when a behavior, option, or parameter is unsupported.
Parameters:
Name | Type | Description |
---|---|---|
message | string | Error message to be displayed. |
Returns:
instance detailing the error condition
- Type
- Error