public final class ExceptionFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONSUMER_INNER_REASON_PHRASE |
static javax.ws.rs.core.Response.StatusType |
CONSUMER_INNER_STATUS |
static int |
CONSUMER_INNER_STATUS_CODE |
static String |
PRODUCER_INNER_REASON_PHRASE |
static javax.ws.rs.core.Response.StatusType |
PRODUCER_INNER_STATUS |
static int |
PRODUCER_INNER_STATUS_CODE |
| Modifier and Type | Method and Description |
|---|---|
static InvocationException |
convertConsumerException(Throwable e) |
static InvocationException |
convertConsumerException(Throwable e,
String errorMsg) |
protected static InvocationException |
convertException(int statusCode,
String reasonPhrase,
Throwable e,
String errorMsg) |
static InvocationException |
convertProducerException(Throwable e) |
static InvocationException |
convertProducerException(Throwable e,
String errorMsg) |
static InvocationException |
create(javax.ws.rs.core.Response.StatusType status,
Object exceptionOrErrorData) |
static InvocationException |
createConsumerException(Object errorData) |
static InvocationException |
createProducerException(Object errorData) |
protected static InvocationException |
doCreate(int statusCode,
String reasonPhrase,
CommonExceptionData data,
Throwable e) |
protected static InvocationException |
doCreate(javax.ws.rs.core.Response.StatusType status,
Object errorData) |
public static final int PRODUCER_INNER_STATUS_CODE
public static final String PRODUCER_INNER_REASON_PHRASE
public static final javax.ws.rs.core.Response.StatusType PRODUCER_INNER_STATUS
public static final int CONSUMER_INNER_STATUS_CODE
public static final String CONSUMER_INNER_REASON_PHRASE
public static final javax.ws.rs.core.Response.StatusType CONSUMER_INNER_STATUS
public static InvocationException create(javax.ws.rs.core.Response.StatusType status, Object exceptionOrErrorData)
public static InvocationException createConsumerException(Object errorData)
public static InvocationException createProducerException(Object errorData)
protected static InvocationException doCreate(javax.ws.rs.core.Response.StatusType status, Object errorData)
protected static InvocationException doCreate(int statusCode, String reasonPhrase, CommonExceptionData data, Throwable e)
public static InvocationException convertConsumerException(Throwable e)
public static InvocationException convertConsumerException(Throwable e, String errorMsg)
public static InvocationException convertProducerException(Throwable e)
public static InvocationException convertProducerException(Throwable e, String errorMsg)
protected static InvocationException convertException(int statusCode, String reasonPhrase, Throwable e, String errorMsg)
Copyright © 2017. All rights reserved.