Package com.github.sardine.impl
Class SardineException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.http.client.ClientProtocolException
org.apache.http.client.HttpResponseException
com.github.sardine.impl.SardineException
- All Implemented Interfaces:
Serializable
public class SardineException
extends org.apache.http.client.HttpResponseException
Specialized type of exception for Sardine so
that it is easy to get the error information from it.
- Author:
- jonstevens
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SardineException(String msg, int statusCode, String responsePhrase) -
Method Summary
Modifier and Type Method Description StringgetMessage()StringgetResponsePhrase()The response phrase returned by the server.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SardineException
- Parameters:
msg- Custom description of failurestatusCode- Error code returned by serverresponsePhrase- Response phrase following the error code
-
-
Method Details
-
getResponsePhrase
The response phrase returned by the server.- Returns:
- Null if not known.
-
getMessage
- Overrides:
getMessagein classThrowable
-