public class HttpException
extends java.lang.RuntimeException
| Constructor and Description |
|---|
HttpException(java.lang.String method,
java.net.URI uri,
int status,
java.lang.String response)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMethod()
Get the HTTP method
|
java.lang.String |
getResponse()
Get the HTTP response body
|
int |
getStatus()
Get the HTTP status
|
java.net.URI |
getUri()
Get the target url
|
public HttpException(java.lang.String method,
java.net.URI uri,
int status,
java.lang.String response)
method - An HTTP method useduri - A target urlstatus - The HTTP response status coderesponse - The HTTP response bodypublic java.lang.String getMethod()
public java.net.URI getUri()
public int getStatus()
public java.lang.String getResponse()
Copyright © 2023. All rights reserved.