public class GXOutboundErrorResponse extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
throwErrorCode(ErrorCode code)
Throws the error code to the client.
|
static void |
throwErrorCode(ErrorCode code,
javax.ws.rs.core.Response.Status status)
Returns the error code to the client with the HTTP status.
|
static void |
throwException(Exception exception)
Throws the exception to the client.
|
static void |
throwException(Exception exception,
javax.ws.rs.core.Response.Status status)
Throws the exception to the client.
|
static void |
throwExceptionWithTrace(Exception exception,
int keepLines)
Throws the exception to the client.
|
static void |
throwExceptionWithTrace(Exception exception,
int keepLines,
javax.ws.rs.core.Response.Status status)
Throws the exception to the client.
|
static void |
throwHTTPErrorStatus(javax.ws.rs.core.Response.Status status,
String message)
Returns the HTTP status to the client as error.
|
public static void throwException(Exception exception)
exception - public static void throwException(Exception exception, javax.ws.rs.core.Response.Status status)
exception - public static void throwExceptionWithTrace(Exception exception, int keepLines, javax.ws.rs.core.Response.Status status)
exception - keepLines - number of lines in the stacktrace to keep (max is 5)public static void throwExceptionWithTrace(Exception exception, int keepLines)
exception - keepLines - number of lines in the stacktrace to keep (max is 5)public static void throwErrorCode(ErrorCode code)
code - public static void throwErrorCode(ErrorCode code, javax.ws.rs.core.Response.Status status)
code - status - public static void throwHTTPErrorStatus(javax.ws.rs.core.Response.Status status,
String message)
status - message - Copyright © 2018. All Rights Reserved.