Using XML for exception handling
Since we can't add annotations to all the exception classes we are interested in, Seam also lets us specify this functionality in pages.xml
.
You can also access the handled exception instance through EL, Seam places it in the conversation context, e.g. to access the message of the exception: