Constructor
new CommandValidationError(messagenon-null, errornon-null)
Parameters:
Name | Type | Description |
---|---|---|
message |
string | the human-readable error message |
error |
SpineBaseError | the command validation error |
- Source:
Extends
Classes
Methods
assuresCommandNeglected() → {boolean}
Returns `true` if the command wasn't accepted by the server; returns `false`
if this is not guaranteed.
A command is assumed neglected if this error is caused by the `ClientError`
or the `SpineBaseError`.
- Overrides:
- Source:
Returns:
- Type
- boolean
getCause() → {*|undefined}
- Overrides:
- Source:
Returns:
The cause of this error, if available.
- Type
- * | undefined
validationError() → {ValidationError}
- Source:
Returns:
command validation error
- Type
- ValidationError