com.rackspacecloud.client.cloudfiles
Class FilesException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.http.HttpException
com.rackspacecloud.client.cloudfiles.FilesException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- FilesAuthorizationException, FilesContainerExistsException, FilesContainerNotEmptyException, FilesInvalidNameException, FilesNotFoundException
public class FilesException
- extends org.apache.http.HttpException
- See Also:
- Serialized Form
Constructor Summary |
FilesException(java.lang.String message,
org.apache.http.Header[] httpHeaders,
org.apache.http.StatusLine httpStatusLine)
An exception generated when a client tries to do something they aren't authorized to do. |
FilesException(java.lang.String message,
java.lang.Throwable cause)
|
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 |
FilesException
public FilesException(java.lang.String message,
org.apache.http.Header[] httpHeaders,
org.apache.http.StatusLine httpStatusLine)
- An exception generated when a client tries to do something they aren't authorized to do.
- Parameters:
message
- The messagehttpHeaders
- The returned HTTP headershttpStatusLine
- The HTTP Status lined returned
FilesException
public FilesException(java.lang.String message,
java.lang.Throwable cause)
getHttpHeaders
public org.apache.http.Header[] getHttpHeaders()
- Returns:
- The HTTP headers returned by the server
getHttpHeadersAsString
public java.lang.String getHttpHeadersAsString()
- Returns:
- The HTTP Headers returned by the server in a human-readable string.
getHttpStatusLine
public org.apache.http.StatusLine getHttpStatusLine()
- Returns:
- The HTTP status line from the server
getHttpStatusCode
public int getHttpStatusCode()
- Returns:
- The numeric HTTP status code from the server
getHttpStatusMessage
public java.lang.String getHttpStatusMessage()
- Returns:
- The HTTP status message from the server
getHttpVersion
public java.lang.String getHttpVersion()
- Returns:
- The version of HTTP used.