Class MessageFactory
- java.lang.Object
-
- io.axoniq.axonserver.connector.impl.MessageFactory
-
public abstract class MessageFactory extends Object
Utility class to build simple messages.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessagebuildErrorMessage(ErrorCategory errorCategory, String client, Throwable t)
-
-
-
Method Detail
-
buildErrorMessage
public static ErrorMessage buildErrorMessage(ErrorCategory errorCategory, String client, Throwable t)
- Parameters:
errorCategory- theErrorCategorythe constructedErrorMessagebelongs toclient- aStringdefining where the constructedErrorMessageoriginates fromt- aThrowabledefining the original exception resulting in thisErrorMessage- Returns:
- an
ErrorMessage, using the givenerrorCategory,clientandThrowable
-
-