com.gliffy.api.client.exception
Class HttpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.gliffy.api.client.exception.HttpException
All Implemented Interfaces:
java.io.Serializable

public class HttpException
extends java.lang.RuntimeException

Errors with the Http communication. Specific error codes can be found when interrogating the statusCode.

See Also:
Serialized Form

Constructor Summary
HttpException(int statusCode, java.lang.String message)
           
 
Method Summary
 int getStatusCode()
          Returns the specific HTTP response code.
 
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

HttpException

public HttpException(int statusCode,
                     java.lang.String message)
Method Detail

getStatusCode

public int getStatusCode()
Returns the specific HTTP response code.

Returns:
the specific HTTP response code.