public void handleError(final String message, final Throwable error) { handleError(new ClientRuntimeError(message, error)); } public void handleError(final Throwable error) {
public void handleError(final Throwable error) { handleError(new ClientRuntimeError(error)); }
public void handleError(final String message, final Throwable error) { handleError(new ClientRuntimeError(message, error)); } public void handleError(final Throwable error) {
public void handleError(final Throwable error) { handleError(new ClientRuntimeError(error)); }
public void handleError(final String message) { handleError(new ClientRuntimeError(message, null)); }
public void handleError(final String message) { handleError(new ClientRuntimeError(message, null)); }
public void showError(ClientRuntimeError error) { getView().error(error); handleError(error); }
public void showError(ClientRuntimeError error) { getView().error(error); handleError(error); }
@Override public String evalExpression(String val, String expr) { if (StringUtils.isBlank(expr)) { return val; } for (String keyword : _jsMalicious) { if (expr.contains(keyword)) { presenter.handleError(DisplayerConstants.INSTANCE.displayer_keyword_not_allowed(expr)); throw new RuntimeException(DisplayerConstants.INSTANCE.displayer_keyword_not_allowed(expr)); } } try { return _evalExpression(val, expr); } catch (Exception e) { presenter.handleError(DisplayerConstants.INSTANCE.displayer_expr_invalid_syntax(expr), e); throw new RuntimeException(DisplayerConstants.INSTANCE.displayer_expr_invalid_syntax(expr)); } }
@Override public String evalExpression(String val, String expr) { if (StringUtils.isBlank(expr)) { return val; } for (String keyword : _jsMalicious) { if (expr.contains(keyword)) { presenter.handleError(DisplayerConstants.INSTANCE.displayer_keyword_not_allowed(expr)); throw new RuntimeException(DisplayerConstants.INSTANCE.displayer_keyword_not_allowed(expr)); } } try { return _evalExpression(val, expr); } catch (Exception e) { presenter.handleError(DisplayerConstants.INSTANCE.displayer_expr_invalid_syntax(expr), e); throw new RuntimeException(DisplayerConstants.INSTANCE.displayer_expr_invalid_syntax(expr)); } }
@Override public void handleError(ClientRuntimeError error) { super.handleError(error); throw new RuntimeException(error.getRootCause()); } }
@Override public void handleError(ClientRuntimeError error) { super.handleError(error); throw new RuntimeException(error.getRootCause()); } }
public void notFound() { String uuid = displayerSettings.getDataSetLookup().getDataSetUUID(); getView().errorDataSetNotFound(uuid); handleError("Data set not found: " + uuid); }
public void notFound() { String uuid = displayerSettings.getDataSetLookup().getDataSetUUID(); getView().errorDataSetNotFound(uuid); handleError("Data set not found: " + uuid); }