public static Class<?> getWebApplicationExceptionClass(Response exResponse, Class<?> defaultExceptionType) { return SpecExceptions.getWebApplicationExceptionClass(exResponse, defaultExceptionType); }
public static WebApplicationException toBadRequestException(Throwable cause, Response response) { try { return SpecExceptions.toBadRequestException(cause, response); } catch (NoClassDefFoundError ex) { return toWebApplicationException(ex, response); } }
public static WebApplicationException toHttpException(Throwable cause, Response response) { try { return SpecExceptions.toHttpException(cause, response); } catch (NoClassDefFoundError ex) { return toWebApplicationException(ex, response); } } }
public static InternalServerErrorException toInternalServerErrorException(Throwable cause, Response response) { return new InternalServerErrorException(checkResponse(response, 500), cause); }
public static WebApplicationException toNotSupportedException(Throwable cause, Response response) { try { return SpecExceptions.toNotSupportedException(cause, response); } catch (NoClassDefFoundError ex) { return toWebApplicationException(ex, response); } }
public static WebApplicationException toNotAcceptableException(Throwable cause, Response response) { try { return SpecExceptions.toNotAcceptableException(cause, response); } catch (NoClassDefFoundError ex) { return toWebApplicationException(ex, response); } }
public static WebApplicationException toInternalServerErrorException(Throwable cause, Response response) { try { return SpecExceptions.toInternalServerErrorException(cause, response); } catch (NoClassDefFoundError ex) { return toWebApplicationException(ex, response); } }
public static WebApplicationException toNotFoundException(Throwable cause, Response response) { try { return SpecExceptions.toNotFoundException(cause, response); } catch (NoClassDefFoundError ex) { return toWebApplicationException(ex, response); } }
public static WebApplicationException toNotAuthorizedException(Throwable cause, Response response) { try { return SpecExceptions.toNotAuthorizedException(cause, response); } catch (NoClassDefFoundError ex) { return toWebApplicationException(ex, response); } }
public static WebApplicationException toForbiddenException(Throwable cause, Response response) { try { return SpecExceptions.toForbiddenException(cause, response); } catch (NoClassDefFoundError ex) { return toWebApplicationException(ex, response); } }
public static BadRequestException toBadRequestException(Throwable cause, Response response) { return new BadRequestException(checkResponse(response, 400), cause); }
public static WebApplicationException toNotSupportedException(Throwable cause, Response response) { try { return SpecExceptions.toNotSupportedException(cause, response); } catch (NoClassDefFoundError ex) { return toWebApplicationException(ex, response); } }
public static WebApplicationException toNotAcceptableException(Throwable cause, Response response) { try { return SpecExceptions.toNotAcceptableException(cause, response); } catch (NoClassDefFoundError ex) { return toWebApplicationException(ex, response); } }
public static WebApplicationException toInternalServerErrorException(Throwable cause, Response response) { try { return SpecExceptions.toInternalServerErrorException(cause, response); } catch (NoClassDefFoundError ex) { return toWebApplicationException(ex, response); } }
public static WebApplicationException toNotFoundException(Throwable cause, Response response) { try { return SpecExceptions.toNotFoundException(cause, response); } catch (NoClassDefFoundError ex) { return toWebApplicationException(ex, response); } }
public static WebApplicationException toNotAuthorizedException(Throwable cause, Response response) { try { return SpecExceptions.toNotAuthorizedException(cause, response); } catch (NoClassDefFoundError ex) { return toWebApplicationException(ex, response); } }
public static ForbiddenException toForbiddenException(Throwable cause, Response response) { return new ForbiddenException(checkResponse(response, 403), cause); }
public static WebApplicationException toHttpException(Throwable cause, Response response) { try { return SpecExceptions.toHttpException(cause, response); } catch (NoClassDefFoundError ex) { return toWebApplicationException(ex, response); } } }
public static WebApplicationException toBadRequestException(Throwable cause, Response response) { try { return SpecExceptions.toBadRequestException(cause, response); } catch (NoClassDefFoundError ex) { return toWebApplicationException(ex, response); } }
public static Class<?> getWebApplicationExceptionClass(Response exResponse, Class<?> defaultExceptionType) { return SpecExceptions.getWebApplicationExceptionClass(exResponse, defaultExceptionType); }