public final class ExceptionUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends Throwable> |
convertFaultToResponse(T ex,
Message currentMessage) |
static String |
getStackTrace(Throwable ex) |
static Class<?> |
getWebApplicationExceptionClass(javax.ws.rs.core.Response exResponse,
Class<?> defaultExceptionType) |
static boolean |
propogateException(Message m) |
static javax.ws.rs.WebApplicationException |
toBadRequestException(Throwable cause,
javax.ws.rs.core.Response response) |
static javax.ws.rs.WebApplicationException |
toForbiddenException(Throwable cause,
javax.ws.rs.core.Response response) |
static javax.ws.rs.WebApplicationException |
toHttpException(Throwable cause,
javax.ws.rs.core.Response response) |
static javax.ws.rs.WebApplicationException |
toInternalServerErrorException(Throwable cause,
javax.ws.rs.core.Response response) |
static javax.ws.rs.WebApplicationException |
toNotAcceptableException(Throwable cause,
javax.ws.rs.core.Response response) |
static javax.ws.rs.WebApplicationException |
toNotAuthorizedException(Throwable cause,
javax.ws.rs.core.Response response) |
static javax.ws.rs.WebApplicationException |
toNotFoundException(Throwable cause,
javax.ws.rs.core.Response response) |
static javax.ws.rs.WebApplicationException |
toNotSupportedException(Throwable cause,
javax.ws.rs.core.Response response) |
static javax.ws.rs.WebApplicationException |
toWebApplicationException(Throwable cause,
javax.ws.rs.core.Response response) |
public static Class<?> getWebApplicationExceptionClass(javax.ws.rs.core.Response exResponse, Class<?> defaultExceptionType)
public static boolean propogateException(Message m)
public static <T extends Throwable> javax.ws.rs.core.Response convertFaultToResponse(T ex, Message currentMessage)
public static javax.ws.rs.WebApplicationException toWebApplicationException(Throwable cause, javax.ws.rs.core.Response response)
public static javax.ws.rs.WebApplicationException toInternalServerErrorException(Throwable cause, javax.ws.rs.core.Response response)
public static javax.ws.rs.WebApplicationException toBadRequestException(Throwable cause, javax.ws.rs.core.Response response)
public static javax.ws.rs.WebApplicationException toNotFoundException(Throwable cause, javax.ws.rs.core.Response response)
public static javax.ws.rs.WebApplicationException toNotAuthorizedException(Throwable cause, javax.ws.rs.core.Response response)
public static javax.ws.rs.WebApplicationException toForbiddenException(Throwable cause, javax.ws.rs.core.Response response)
public static javax.ws.rs.WebApplicationException toNotAcceptableException(Throwable cause, javax.ws.rs.core.Response response)
public static javax.ws.rs.WebApplicationException toNotSupportedException(Throwable cause, javax.ws.rs.core.Response response)
public static javax.ws.rs.WebApplicationException toHttpException(Throwable cause, javax.ws.rs.core.Response response)
Apache CXF