Interface UaExceptionStatus
- All Known Implementing Classes:
UaException,UaRuntimeException,UaSerializationException,UaServiceFaultException
public interface UaExceptionStatus
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<UaExceptionStatus>Ifexis aUaExceptionStatus, or if aUaExceptionStatuscan be found by walking up the exception cause chain, return it.
-
Method Details
-
getMessage
String getMessage()- Returns:
- the message associated with the exception.
-
getStatusCode
StatusCode getStatusCode()- Returns:
- the
StatusCodeassociated with the exception.
-
extract
Ifexis aUaExceptionStatus, or if aUaExceptionStatuscan be found by walking up the exception cause chain, return it.- Parameters:
ex- theThrowableto extract from.- Returns:
- a
UaExceptionStatusif one was present in the exception chain.
-