Class BadRequestWebException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.ws.rs.WebApplicationException
com.atlassian.jira.rest.exception.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:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new BadRequestWebException for the given issue.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
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BadRequestWebException
public BadRequestWebException()Creates a new BadRequestWebException for the given issue. Whenever possible it is preferable to useBadRequestWebException(com.atlassian.jira.rest.api.util.ErrorCollection)
constructor, passing a collection of errors. -
BadRequestWebException
Creates a new BadRequestWebException.- Parameters:
cause
- the underlying cause of the exception
-
BadRequestWebException
Creates a new BadRequestWebException, with a collection of errors.- Parameters:
errors
- an ErrorCollection containing the errors
-
BadRequestWebException
Creates a new BadRequestWebException, with a collection of errors and a cause.- Parameters:
cause
- the underlying cause of the exceptionerrors
- an ErrorCollection containing the errors
-