com.rackspacecloud.client.cloudfiles
Class FilesException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.http.HttpException
              extended by 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)
           
 
Method Summary
 org.apache.http.Header[] getHttpHeaders()
           
 java.lang.String getHttpHeadersAsString()
           
 int getHttpStatusCode()
           
 org.apache.http.StatusLine getHttpStatusLine()
           
 java.lang.String getHttpStatusMessage()
           
 java.lang.String getHttpVersion()
           
 
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
 

Constructor Detail

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 message
httpHeaders - The returned HTTP headers
httpStatusLine - The HTTP Status lined returned

FilesException

public FilesException(java.lang.String message,
                      java.lang.Throwable cause)
Method Detail

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.