Class: CommandValidationError

CommandValidationError(messagenon-null, errornon-null)

An error which occurs when sending off a command to Spine server endpoint results with a response indicating that a command message was rejected further processing because of a validation error.

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

CommandValidationError

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