use of io.spine.server.commandbus.CommandException in project core-java by SpineEventEngine.
the class CommandService method handleUnsupported.
private static void handleUnsupported(Command request, StreamObserver<Response> responseObserver) {
final CommandException unsupported = new UnsupportedCommandException(request);
log().error("Unsupported command posted to CommandService", unsupported);
responseObserver.onError(invalidArgumentWithCause(unsupported, unsupported.getError()));
}
Aggregations