| Package | Description |
|---|---|
| org.gcube.common.gxrest.response.entity |
Core data held by a response.
|
| org.gcube.common.gxrest.response.inbound |
Inbound responses for client applications.
|
| org.gcube.common.gxrest.response.outbound |
Outbound responses for web applications.
|
| Constructor and Description |
|---|
SerializableErrorEntity(ErrorCode errorCode) |
| Modifier and Type | Method and Description |
|---|---|
ErrorCode |
GXInboundResponse.getErrorCode()
Gets the
ErrorCode inside the entity. |
| Modifier and Type | Class and Description |
|---|---|
class |
LocalCodeException
A local exception wrapping an
ErrorCode. |
| Modifier and Type | Method and Description |
|---|---|
static <E extends Enum<E> & ErrorCode> |
CodeFinder.findAndConvert(ErrorCode code,
E[] codes)
Finds and convert the given code as enum value.
|
| Modifier and Type | Method and Description |
|---|---|
static <E extends Enum<E> & ErrorCode> |
CodeFinder.findAndConvert(ErrorCode code,
E[] codes)
Finds and convert the given code as enum value.
|
static void |
GXOutboundErrorResponse.throwErrorCode(ErrorCode code)
Throws the error code to the client.
|
static void |
GXOutboundErrorResponse.throwErrorCode(ErrorCode code,
javax.ws.rs.core.Response.Status status)
Returns the error code to the client with the HTTP status.
|
| Constructor and Description |
|---|
LocalCodeException(ErrorCode code) |
Copyright © 2019. All Rights Reserved.