public class BrokerException extends Exception
matchesError(BrokerError)
) for determining if the exception matches a specific BrokerError
.Constructor and Description |
---|
BrokerException(BrokerErrorResponse errorResponse)
Create the exception with the given
BrokerErrorResponse . |
Modifier and Type | Method and Description |
---|---|
BrokerErrorResponse |
getErrorResponse()
Get the
BrokerErrorResponse this exception represents. |
boolean |
matchesError(BrokerError error)
Find out if the exception is for the given
BrokerError . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BrokerException(BrokerErrorResponse errorResponse)
BrokerErrorResponse
.errorResponse
- the error response this exception representspublic BrokerErrorResponse getErrorResponse()
BrokerErrorResponse
this exception represents.BrokerErrorResponse
this exception representspublic boolean matchesError(BrokerError error)
BrokerError
.error
- the BrokerError
to checkBrokerErrorResponse
represents the given BrokerError
Copyright © 2021. All rights reserved.