BadRequest
@Response(code=400, description="Bad Request") @Deprecated public class BadRequest extends RestException
The server cannot or will not process the request due to an apparent client error (e.g., malformed request syntax, size too large, invalid request message framing, or deceptive request routing).
Modifier and Type | Field and Description |
---|---|
static int |
CODE
Deprecated.
HTTP status code
|
static String |
MESSAGE
Deprecated.
Default message
|
Constructor and Description |
---|
BadRequest()
Deprecated.
Constructor.
|
BadRequest(String msg)
Deprecated.
Constructor.
|
BadRequest(String msg,
Object... args)
Deprecated.
Constructor.
|
BadRequest(Throwable cause)
Deprecated.
Constructor.
|
BadRequest(Throwable cause,
String msg,
Object... args)
Deprecated.
Constructor.
|
getFullStackMessage, getOccurrence, getRootCause, getStatus, hashCode, setOccurrence, setStatus, toString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public static final int CODE
public static final String MESSAGE
public BadRequest(Throwable cause, String msg, Object... args)
cause
- The cause. Can be msg
- The message. Can be args
- Optional MessageFormat
-style arguments in the message.public BadRequest(String msg)
msg
- The message. Can be public BadRequest()
public BadRequest(String msg, Object... args)
msg
- The message. Can be args
- Optional MessageFormat
-style arguments in the message.public BadRequest(Throwable cause)
cause
- The cause. Can be Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.