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.
See Also:
  • Constructor Details

    • SardineException

      public SardineException(String msg, int statusCode, String responsePhrase)
      Parameters:
      msg - Custom description of failure
      statusCode - Error code returned by server
      responsePhrase - Response phrase following the error code
  • Method Details

    • getResponsePhrase

      public String getResponsePhrase()
      The response phrase returned by the server.
      Returns:
      Null if not known.
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable