public class SphereBackendException extends SphereException
Constructor and Description |
---|
SphereBackendException(java.lang.String requestUrl,
SphereErrorResponse errorResponse) |
Modifier and Type | Method and Description |
---|---|
java.util.List<SphereError> |
getErrors()
The individual errors.
|
java.lang.String |
getMessage()
The message of the first error, for convenience.
|
java.lang.String |
getRequestUrl()
Sphere web service endpoint where the request was sent.
|
int |
getStatusCode()
The HTTP status code of the response.
|
java.lang.String |
toString() |
public SphereBackendException(java.lang.String requestUrl, @Nonnull SphereErrorResponse errorResponse)
public java.lang.String getRequestUrl()
public int getStatusCode()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
@Nonnull public java.util.List<SphereError> getErrors()
public java.lang.String toString()
toString
in class java.lang.Throwable