public class AxonServerException extends RuntimeException
| Constructor and Description |
|---|
AxonServerException(ErrorCategory errorCategory,
String message,
String location)
Initialize the exception for an error in the given
errorCategory, explained by the given message,
which occurred in given location. |
AxonServerException(ErrorCategory errorCategory,
String message,
String location,
List<String> details,
Throwable cause)
Initialize the exception for an error in the given
errorCategory, explained by the given message
and details, which occurred in given location and caused by the given cause. |
AxonServerException(ErrorCategory errorCategory,
String message,
String location,
Throwable cause)
Initialize the exception for an error in the given
errorCategory, explained by the given message,
which occurred in given location and caused by the given cause. |
AxonServerException(ErrorMessage errorMessage)
Initialize the exception for the error reported in the given
errorMessage. |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getDetails()
Returns the list of messages detailing the underlying cause.
|
ErrorCategory |
getErrorCategory()
Returns the category of the error that caused this exception.
|
String |
getLocation()
Returns the identifier of the location where the exception occurred.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AxonServerException(ErrorMessage errorMessage)
errorMessage.errorMessage - the ErrorMessage provided by AxonServer to describe the errorpublic AxonServerException(ErrorCategory errorCategory, String message, String location)
errorCategory, explained by the given message,
which occurred in given location.errorCategory - the category of error occurringmessage - the message describing the exceptionlocation - the location (AxonServer, client Id) where the error occurredpublic AxonServerException(ErrorCategory errorCategory, String message, String location, Throwable cause)
errorCategory, explained by the given message,
which occurred in given location and caused by the given cause.errorCategory - the category of error occurringmessage - the message describing the exceptionlocation - the location (AxonServer, client Id) where the error occurredcause - the underlying cause of the exception. May be nullpublic AxonServerException(ErrorCategory errorCategory, String message, String location, List<String> details, Throwable cause)
errorCategory, explained by the given message
and details, which occurred in given location and caused by the given cause.errorCategory - the category of error occurringmessage - the message describing the exceptionlocation - the location (AxonServer, client Id) where the error occurreddetails - a list of messages detailing underlying causescause - the underlying cause of the exception. May be nullpublic ErrorCategory getErrorCategory()
public List<String> getDetails()
public String getLocation()
Copyright © 2020–2022 AxonIQ BV. All rights reserved.