Class ExceptionSerializer

java.lang.Object
org.axonframework.axonserver.connector.util.ExceptionSerializer

public abstract class ExceptionSerializer extends Object
Utility class used to serializer Throwables into ErrorMessages.
Since:
4.0
Author:
Marc Gathier
  • Method Details

    • serialize

      public static io.axoniq.axonserver.grpc.ErrorMessage serialize(String clientLocation, Throwable t)
      Serializes a given Throwable into an ErrorMessage.
      Parameters:
      clientLocation - the name of the client were the ErrorMessage originates from
      t - the Throwable to base this ErrorMessage on
      Returns:
      the ErrorMessage originating from the given clientLocation and based on the Throwable