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 Summary
static io.axoniq.axonserver.grpc.ErrorMessage
Serializes a given
Throwable into an
ErrorMessage.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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