info.sswap.api.servlet
Class ClientException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by info.sswap.api.servlet.ClientException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RequestEntityTooLargeException

public class ClientException
extends java.lang.RuntimeException

Exception class for HTTP response code 400 Bad Request.

Author:
Damian Gessler
See Also:
Serialized Form

Field Summary
protected static java.lang.String defaultMessage
           
 
Constructor Summary
ClientException()
          Creates a new exception
ClientException(java.lang.Exception exception)
          Creates a new exception with the exception
ClientException(java.lang.String detailMessage)
          Creates a new exception with the detail message
 
Method Summary
 int getResponseCode()
          The HTTP response (status) code 400 Request Entity Too Large
 
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
 

Field Detail

defaultMessage

protected static java.lang.String defaultMessage
Constructor Detail

ClientException

public ClientException()
Creates a new exception


ClientException

public ClientException(java.lang.String detailMessage)
Creates a new exception with the detail message

Parameters:
detailMessage - exception detail message

ClientException

public ClientException(java.lang.Exception exception)
Creates a new exception with the exception

Parameters:
exception - source exception for this client exception
Method Detail

getResponseCode

public int getResponseCode()
The HTTP response (status) code 400 Request Entity Too Large

Returns:
response code 400


Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.