public class ResponseException extends Exception
Constructor and Description |
---|
ResponseException(ResponseStatusCode responseStatusCode,
String serverMessage) |
ResponseException(ResponseStatusCode responseStatusCode,
String serverMessage,
List<String> remoteExceptionHierarchy,
String remoteStackTrace) |
ResponseException(ResponseStatusCode responseStatusCode,
String serverMessage,
List<String> remoteExceptionHierarchy,
String remoteStackTrace,
Map<String,Object> statusAttributes) |
Modifier and Type | Method and Description |
---|---|
Optional<List<String>> |
getRemoteExceptionHierarchy()
The list of exceptions generated by the server starting with the top-most one followed by its "cause".
|
Optional<String> |
getRemoteStackTrace()
The stacktrace produced by the remote server.
|
ResponseStatusCode |
getResponseStatusCode() |
Optional<Map<String,Object>> |
getStatusAttributes()
Gets any status attributes from the response.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ResponseException(ResponseStatusCode responseStatusCode, String serverMessage)
public ResponseException(ResponseStatusCode responseStatusCode, String serverMessage, List<String> remoteExceptionHierarchy, String remoteStackTrace)
public ResponseStatusCode getResponseStatusCode()
public Optional<String> getRemoteStackTrace()
public Optional<List<String>> getRemoteExceptionHierarchy()
Copyright © 2013–2021 Apache Software Foundation. All rights reserved.