Questo contenuto non è disponibile nella lingua selezionata.

29.6. Annotations for exceptions


These annotations let you specify how Seam handles any exceptions propagating from a Seam component.
@Redirect
@Redirect(viewId="error.jsp")
Copy to Clipboard Toggle word wrap
Specifies that the annotated exception causes a browser redirect to a specified view ID.
  • viewId — specifies the JSF view ID to redirect to. You can use EL here.
  • message — a message to be displayed. Defaults to the exception message.
  • end — specifies that the long-running conversation should end. Defaults to false.
@HttpError
@HttpError(errorCode=404)
Copy to Clipboard Toggle word wrap
Specifies that the annotated exception causes a HTTP error to be sent.
  • errorCode — the HTTP error code. Defaults to 500.
  • message — a message to be sent with the HTTP error. Defaults to the exception message.
  • end — specifies that the long-running conversation should end. Defaults to false.
Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2026 Red Hat