public class

BadRequestWebException

extends WebApplicationException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ javax.ws.rs.WebApplicationException
           ↳ com.atlassian.jira.rest.exception.BadRequestWebException

Class Overview

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

Summary

Public Constructors
BadRequestWebException()
Creates a new BadRequestWebException for the given issue.
BadRequestWebException(Throwable cause)
Creates a new BadRequestWebException.
BadRequestWebException(ErrorCollection errors)
Creates a new BadRequestWebException, with a collection of errors.
BadRequestWebException(Throwable cause, ErrorCollection errors)
Creates a new BadRequestWebException, with a collection of errors and a cause.
[Expand]
Inherited Methods
From class javax.ws.rs.WebApplicationException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

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.

public BadRequestWebException (Throwable cause)

Creates a new BadRequestWebException.

Parameters
cause the underlying cause of the exception

public BadRequestWebException (ErrorCollection errors)

Creates a new BadRequestWebException, with a collection of errors.

Parameters
errors an ErrorCollection containing the errors

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