Package sherpa.partner.api.client
Class ClientServerException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- sherpa.partner.api.client.ClientGeneralException
-
- sherpa.partner.api.client.ClientServerException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ForbiddenException,UnauthorisedException
public class ClientServerException extends ClientGeneralException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClientServerException(int statusCode, java.lang.String statusMessage, sherpa.partner.api.common.ErrorResponse error)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description sherpa.partner.api.common.ErrorResponsegetError()Get the error returned by the serverintgetStatusCode()Get the HTTP status codejava.lang.StringgetStatusMessage()Get the HTTP status message
-
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
Get the HTTP status code- Returns:
- the status code
-
getStatusMessage
public java.lang.String getStatusMessage()
Get the HTTP status message- Returns:
- the status message
-
getError
public sherpa.partner.api.common.ErrorResponse getError()
Get the error returned by the server- Returns:
- the list of errors
-
-