info.sswap.http.rest
Class InvalidParametersException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.ws.rs.WebApplicationException
                  extended by info.sswap.http.rest.InvalidParametersException
All Implemented Interfaces:
java.io.Serializable

public class InvalidParametersException
extends javax.ws.rs.WebApplicationException

An exception generated for requests with bad or unacceptable parameter values. The exceptions of this type generate 400 HTTP code.

Author:
Blazej Bulka
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          Serial version ID for a Serializable class
 
Constructor Summary
InvalidParametersException()
          Creates an exception that will generate a generic "400 Bad request" response
InvalidParametersException(java.lang.String message)
          Creates an exception that will generate a "400" HTTP response with a specified message (typed text/plain).
 
Method Summary
 
Methods inherited from class javax.ws.rs.WebApplicationException
getResponse
 
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

serialVersionUID

private static final long serialVersionUID
Serial version ID for a Serializable class

See Also:
Constant Field Values
Constructor Detail

InvalidParametersException

public InvalidParametersException()
Creates an exception that will generate a generic "400 Bad request" response


InvalidParametersException

public InvalidParametersException(java.lang.String message)
Creates an exception that will generate a "400" HTTP response with a specified message (typed text/plain).

Parameters:
message - the custom message to be displayed as an error message


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