private void enhanceContextWithApplicationException(final ODataApplicationException toHandleException) { errorContext.setHttpStatus(toHandleException.getHttpStatus()); errorContext.setErrorCode(toHandleException.getCode()); }
private void enhanceContextWithApplicationException(final ODataApplicationException toHandleException) { errorContext.setHttpStatus(toHandleException.getHttpStatus()); errorContext.setErrorCode(toHandleException.getCode()); }
private void enhanceContextWithApplicationException(final ODataApplicationException toHandleException) { errorContext.setHttpStatus(toHandleException.getHttpStatus()); errorContext.setErrorCode(toHandleException.getCode()); }
private void enhanceContextWithApplicationException(final ODataApplicationException toHandleException) { errorContext.setHttpStatus(toHandleException.getHttpStatus()); errorContext.setErrorCode(toHandleException.getCode()); errorContext.setLocale(messageLocale); }
private void enhanceContextWithApplicationException(final ODataApplicationException toHandleException) { errorContext.setHttpStatus(toHandleException.getHttpStatus()); errorContext.setErrorCode(toHandleException.getCode()); errorContext.setLocale(messageLocale); }
statusCode = ((ODataApplicationException) exception).getHttpStatus().getStatusCode(); }else if (exception instanceof ODataHttpException){ statusCode = ((ODataHttpException) exception).getHttpStatus().getStatusCode();
errorContext.setHttpStatus(exp.getHttpStatus()); if(exp.getCode() == null) { errorContext.setErrorCode(exp.getHttpStatus().name()); } else { errorContext.setErrorCode(exp.getCode());
httpCode = ((ODataApplicationException) exception.getCause()).getHttpStatus();
} else if (e.getCause() != null && e.getCause() instanceof BaseException) { ODataApplicationException exp = (ODataApplicationException) e.getCause(); throw new ODataApplicationException( e.getMessage() + e.getCause().getMessage(), Locale.getDefault(), exp.getHttpStatus(), null, exp);//NOPMD - suppressed as the exception is preserved
} else if (e.getCause() != null && e.getCause() instanceof BaseException) { ODataApplicationException exp = (ODataApplicationException) e.getCause(); throw new ODataApplicationException( e.getMessage() + e.getCause().getMessage(), Locale.getDefault(), exp.getHttpStatus(), null, exp);//NOPMD - suppressed as the exception is preserved