public class ClientHTTPException extends HTTPException
Constructor and Description |
---|
ClientHTTPException()
Creates a
ClientHTTPException with status code 400 "Bad Request". |
ClientHTTPException(int statusCode)
Creates a
ClientHTTPException with the specified status code. |
ClientHTTPException(int statusCode,
String message)
Creates a
ClientHTTPException with the specified status code. |
ClientHTTPException(int statusCode,
String message,
Throwable t)
Creates a
ClientHTTPException with the specified status code. |
ClientHTTPException(int statusCode,
Throwable t)
Creates a
ClientHTTPException with the specified status code. |
ClientHTTPException(String msg)
Creates a
ClientHTTPException with status code 400 "Bad Request". |
ClientHTTPException(String msg,
Throwable t)
Creates a
ClientHTTPException with status code 400 "Bad Request". |
Modifier and Type | Method and Description |
---|---|
protected void |
setStatusCode(int statusCode) |
getStatusCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ClientHTTPException()
ClientHTTPException
with status code 400 "Bad Request".public ClientHTTPException(String msg)
ClientHTTPException
with status code 400 "Bad Request".public ClientHTTPException(String msg, Throwable t)
ClientHTTPException
with status code 400 "Bad Request".public ClientHTTPException(int statusCode)
ClientHTTPException
with the specified status code.IllegalArgumentException
- If statusCode is not in the 4xx range.public ClientHTTPException(int statusCode, String message)
ClientHTTPException
with the specified status code.IllegalArgumentException
- If statusCode is not in the 4xx range.public ClientHTTPException(int statusCode, String message, Throwable t)
ClientHTTPException
with the specified status code.IllegalArgumentException
- If statusCode is not in the 4xx range.public ClientHTTPException(int statusCode, Throwable t)
ClientHTTPException
with the specified status code.IllegalArgumentException
- If statusCode is not in the 4xx range.protected void setStatusCode(int statusCode)
setStatusCode
in class HTTPException
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.