A tagging interface for Exceptions that carry a HTTP response code and reason.
Exception sub-classes that implement this interface will be caught by the container
and the getCode() used to send a response.
| Modifier and Type | Class and Description |
|---|---|
| public static class | HttpException.IllegalArgumentException
Exception thrown to indicate a Bad HTTP Message has either been received or attempted to be generated. |
| public static class | HttpException.RuntimeException
Exception thrown to indicate a Bad HTTP Message has either been received or attempted to be generated. |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public String | |
| public static void |
| getCode | back to summary |
|---|---|
| public int getCode() | |
| getReason | back to summary |
|---|---|
| public String getReason() | |
| throwAsUnchecked | back to summary |
|---|---|
| public static void throwAsUnchecked(HttpException httpException) | |
Exception thrown to indicate a Bad HTTP Message has either been received or attempted to be generated. Typically these are handled with either 400 or 500 responses.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public String |
| _code | back to summary |
|---|---|
| private final int _code | |
| _reason | back to summary |
|---|---|
| private final String _reason | |
| IllegalArgumentException | back to summary |
|---|---|
| public IllegalArgumentException(int code) | |
| IllegalArgumentException | back to summary |
|---|---|
| public IllegalArgumentException(int code, String reason) | |
| IllegalArgumentException | back to summary |
|---|---|
| public IllegalArgumentException(int code, String reason, Throwable cause) | |
| getCode | back to summary |
|---|---|
| public int getCode() Implements org.
| |
| getReason | back to summary |
|---|---|
| public String getReason() Implements org.
| |
Exception thrown to indicate a Bad HTTP Message has either been received or attempted to be generated. Typically these are handled with either 400 or 500 responses.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public String |
| _code | back to summary |
|---|---|
| private final int _code | |
| _reason | back to summary |
|---|---|
| private final String _reason | |
| RuntimeException | back to summary |
|---|---|
| public RuntimeException(int code) | |
| RuntimeException | back to summary |
|---|---|
| public RuntimeException(int code, String reason) | |
| RuntimeException | back to summary |
|---|---|
| public RuntimeException(int code, Throwable cause) | |
| RuntimeException | back to summary |
|---|---|
| public RuntimeException(int code, String reason, Throwable cause) | |
| getCode | back to summary |
|---|---|
| public int getCode() Implements org.
| |
| getReason | back to summary |
|---|---|
| public String getReason() Implements org.
| |