com.googlecode.sardine.util
Class SardineException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.googlecode.sardine.util.SardineException
- All Implemented Interfaces:
- java.io.Serializable
public class SardineException
- extends java.io.IOException
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 |
SardineException(java.lang.Exception ex)
|
SardineException(java.lang.String url,
int statusCode,
java.lang.String responsePhrase)
|
SardineException(java.lang.String msg,
java.lang.String url)
|
SardineException(java.lang.String msg,
java.lang.String url,
java.lang.Exception initCause)
|
SardineException(java.lang.String msg,
java.lang.String url,
int statusCode,
java.lang.String responsePhrase)
|
SardineException(java.lang.String msg,
java.lang.String url,
int statusCode,
java.lang.String responsePhrase,
java.lang.Exception initCause)
|
Method Summary |
java.lang.String |
getResponsePhrase()
The http client response phrase. |
int |
getStatusCode()
The http client status code. |
java.lang.String |
getUrl()
The url that caused the failure. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SardineException
public SardineException(java.lang.Exception ex)
SardineException
public SardineException(java.lang.String msg,
java.lang.String url)
SardineException
public SardineException(java.lang.String msg,
java.lang.String url,
java.lang.Exception initCause)
SardineException
public SardineException(java.lang.String msg,
java.lang.String url,
int statusCode,
java.lang.String responsePhrase)
SardineException
public SardineException(java.lang.String url,
int statusCode,
java.lang.String responsePhrase)
SardineException
public SardineException(java.lang.String msg,
java.lang.String url,
int statusCode,
java.lang.String responsePhrase,
java.lang.Exception initCause)
getUrl
public java.lang.String getUrl()
- The url that caused the failure.
getStatusCode
public int getStatusCode()
- The http client status code.
A status code of -1 means that there isn't one and probably isn't a response phrase either.
getResponsePhrase
public java.lang.String getResponsePhrase()
- The http client response phrase.
Copyright © 2010 Jon Stevens and a gang of smelly fish. All Rights Reserved. Build version: 39