CommandErrorCallback typedef

CommandErrorCallback = void Function(Error error)

A callback which notifies the user about an error when posting a command.

A server may reject a command for several reasons. For example, a command type may not be supported by the target server. In such cases, the server acknowledges the command and responds with a spine.base.Error.

To find out the actual reason of the error, explore the Error.type and Error.code.

Implementation

typedef CommandErrorCallback = void Function(pbError.Error error);