net.netheos.pcsapi.exceptions
Class CHttpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.netheos.pcsapi.exceptions.CStorageException
                  extended by net.netheos.pcsapi.exceptions.CHttpException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CAuthenticationException

public class CHttpException
extends CStorageException

Thrown when provider server answers non OK answers.

See Also:
Serialized Form

Constructor Summary
CHttpException(String message, CResponse response)
           
 
Method Summary
 String getRequestMethod()
          Get the request method
 String getRequestUri()
          Get the requested URI
 int getStatus()
          Get the HTTP status code
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CHttpException

public CHttpException(String message,
                      CResponse response)
Method Detail

getStatus

public int getStatus()
Get the HTTP status code

Returns:
The status code

getRequestUri

public String getRequestUri()
Get the requested URI

Returns:
The requested URI

getRequestMethod

public String getRequestMethod()
Get the request method

Returns:
The method (GET, POST ...)

toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2014. All Rights Reserved.