Class ErrorView
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
it.uniupo.simnova.views.home.ErrorView
- All Implemented Interfaces:
- com.vaadin.flow.component.AttachNotifier,- com.vaadin.flow.component.DetachNotifier,- com.vaadin.flow.component.HasElement,- com.vaadin.flow.component.HasStyle,- com.vaadin.flow.router.HasErrorParameter<com.vaadin.flow.router.NotFoundException>,- Serializable
public class ErrorView
extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
implements com.vaadin.flow.router.HasErrorParameter<com.vaadin.flow.router.NotFoundException>
Vista di errore personalizzata per la gestione delle pagine non trovate (errore 404).
 Mostra un messaggio di errore, un logo animato e un pulsante per tornare alla homepage.
- Version:
- 1.0
- Author:
- Alessandro Zappatore
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionErrorView(FileStorageService fileStorageService) Costruttore della vista di errore.
- 
Method SummaryModifier and TypeMethodDescriptionintsetErrorParameter(com.vaadin.flow.router.BeforeEnterEvent event, com.vaadin.flow.router.ErrorParameter<com.vaadin.flow.router.NotFoundException> parameter) Imposta il parametro di errore per la rotta non trovata (404).Methods inherited from class com.vaadin.flow.component.CompositegetChildren, getContent, getElement, initContentMethods inherited from class com.vaadin.flow.component.ComponentaddListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifieraddAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifieraddDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyleaddClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
- 
Constructor Details- 
ErrorViewCostruttore della vista di errore. Inizializza il layout della pagina con header, logo animato, titolo, messaggio e pulsante per tornare alla home.- Parameters:
- fileStorageService- Servizio per la gestione dei file, utilizzato per l'AppHeader.
 
 
- 
- 
Method Details- 
setErrorParameterpublic int setErrorParameter(com.vaadin.flow.router.BeforeEnterEvent event, com.vaadin.flow.router.ErrorParameter<com.vaadin.flow.router.NotFoundException> parameter) Imposta il parametro di errore per la rotta non trovata (404). Se un messaggio personalizzato รจ fornito, lo visualizza.- Specified by:
- setErrorParameterin interface- com.vaadin.flow.router.HasErrorParameter<com.vaadin.flow.router.NotFoundException>
- Parameters:
- event- L'evento di navigazione.
- parameter- Il parametro di errore contenente l'eccezione e un eventuale messaggio personalizzato.
- Returns:
- Il codice di stato HTTP 404 (Not Found).
 
 
-