@Override protected void setErrorHandler() { nroSiniestro.setErrorHandler(new ErrorHandler() { private static final long serialVersionUID = 4325669635885170314L; @Override public void error(com.vaadin.server.ErrorEvent event) { log.debug("Ocurrio un error al levantar los parametros de busqueda."); nroSiniestro.setValue(null); tableSiniestros.removeAllItems(); btnExportar.setEnabled(false); } }); }
/** * Adds a default transaction listener. */ @Override public void init() { final LegacyApplication app = this; VaadinSession.getCurrent().setErrorHandler(new ErrorHandler() { private static final long serialVersionUID = 1L; @Override public void error(ErrorEvent event) { Utils.terminalError(event, app); } }); if(!Db.isInitialized()) { logger.warn("No TransactionListener added: Database is not initialized. You can initialize a database configuring a new 'DefaultTransactionListener' in your web.xml and adding a 'configuration.properties' file to your classpath."); } VaadinSession.getCurrent().setAttribute("application", this); }
private void setErrorHandler() { // TODO Auto-generated method stub txtNombre.setErrorHandler(new ErrorHandler() { private static final long serialVersionUID = -7866511259549430845L; @Override public void error(com.vaadin.server.ErrorEvent event) { txtNombre.setValue(null); btnExportar.setEnabled(false); } }); }
/** * Call the session's {@link ErrorHandler}, if it has one, with the given * exception wrapped in an {@link ErrorEvent}. */ private void callErrorHandler(VaadinSession session, Exception e) { try { ErrorHandler errorHandler = ErrorEvent.findErrorHandler(session); if (errorHandler != null) { errorHandler.error(new ErrorEvent(e)); } } catch (Exception ex) { // Let's not allow error handling to cause trouble; log fails getLogger().log(Level.WARNING, "ErrorHandler call failed", ex); } }
protected AbstractRunningEvent(ErrorHandler errorHandler) { super(errorHandler); }
public FinishBranchEvent(ErrorHandler errorHandler) { super(errorHandler); }
public StartTestEvent(SimpleTest test, ErrorHandler errorHandler) { super(errorHandler); this.test = test; }
public ErrorTestEvent(ErrorHandler errorHandler) { super(errorHandler); }
public AfterFinishSlideEvent(Direction direction, ErrorHandler errorHandler) { super(errorHandler); this.direction = direction; }
public AfterPrepareTestEvent(SimpleTest test, ErrorHandler errorHandler) { super(errorHandler); this.test = test; }
public CloseTestEvent(ErrorHandler errorHandler) { super(errorHandler); }
public AfterRenderContentEvent(Component component, ErrorHandler errorHandler) { super(component, errorHandler); }
protected AbstractUserEvent(ErrorHandler errorHandler) { super(errorHandler); }
public ActionEvent(Action action, ErrorHandler errorHandler) { super(errorHandler); this.action = action; }
public ContinueTestEvent(SimpleTest test, ErrorHandler errorHandler) { super(errorHandler); this.test = test; }
public BreakTestEvent(ErrorHandler errorHandler) { super(errorHandler); }
public NextBranchEvent(ErrorHandler errorHandler) { super(errorHandler); }
protected AbstractProcessEvent(ErrorHandler errorHandler) { this.timestamp = new Date(); this.errorHandler = errorHandler; }
public ErrorHandler getErrorHandler() { return errorHandler; }
public void setErrorHandler(ErrorHandler errorHandler) { this.errorHandler = errorHandler; }
public FinishSlideEvent(Direction direction, ErrorHandler errorHandler) { super(errorHandler); this.direction = direction; }
public PriorSlideEvent(ErrorHandler errorHandler) { super(errorHandler); }
protected AbstractTestEvent(ErrorHandler errorHandler) { super(errorHandler); }
public NextTaskEvent(ErrorHandler errorHandler) { super(errorHandler); }
public RenderContentEvent(Component component, ErrorHandler errorHandler) { super(component, errorHandler); }
protected AbstractContentEvent(Component component, ErrorHandler errorHandler) { super(errorHandler); this.component = component; }
public NextSlideEvent(ErrorHandler errorHandler) { super(errorHandler); }
public FinishTestEvent(ErrorHandler errorHandler) { super(errorHandler); }
public FinishTaskEvent(ErrorHandler errorHandler) { super(errorHandler); }