com.atlassian.jira.rest
Class BadRequestWebException

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 com.atlassian.jira.rest.BadRequestWebException
All Implemented Interfaces:
Serializable

public class BadRequestWebException
extends javax.ws.rs.WebApplicationException

This exception is thrown when a client provides invalid input to a REST resource.

Since:
v4.4
See Also:
Serialized Form

Constructor Summary
BadRequestWebException()
          Creates a new BadRequestWebException for the given issue.
BadRequestWebException(ErrorCollection errors)
          Creates a new BadRequestWebException, with a collection of errors.
BadRequestWebException(Throwable cause)
          Creates a new BadRequestWebException.
BadRequestWebException(Throwable cause, ErrorCollection errors)
          Creates a new BadRequestWebException, with a collection of errors and a cause.
 
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
 

Constructor Detail

BadRequestWebException

public BadRequestWebException()
Creates a new BadRequestWebException for the given issue. Whenever possible it is preferable to use BadRequestWebException(com.atlassian.jira.rest.api.util.ErrorCollection) constructor, passing a collection of errors.


BadRequestWebException

public BadRequestWebException(Throwable cause)
Creates a new BadRequestWebException.

Parameters:
cause - the underlying cause of the exception

BadRequestWebException

public BadRequestWebException(ErrorCollection errors)
Creates a new BadRequestWebException, with a collection of errors.

Parameters:
errors - an ErrorCollection containing the errors

BadRequestWebException

public BadRequestWebException(Throwable cause,
                              ErrorCollection errors)
Creates a new BadRequestWebException, with a collection of errors and a cause.

Parameters:
cause - the underlying cause of the exception
errors - an ErrorCollection containing the errors


Copyright © 2002-2012 Atlassian. All Rights Reserved.