Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-1183

Allow custom ExceptionHandler implementations to be inserted

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 1.1.6.GA
    • Fix Version/s: None
    • Component/s: Exception Handling
    • Labels:
      None
    • Environment:

      Any

      Description

      Currently you can only configure a small subset of actions to occur on an exception (redirect, http-error etc). Enhancing the exception configuration xml to allow pluggable ExceptionHandler implementations would make this a lot more flexible.

      e.g. pages.xml

      <pages>

      <!-- the current way, exception class + action -->
      <exception class="javax.persistence.EntityNotFoundException">
      <http-error error-code="404"/>
      </exception>

      <!-- proposed enhancement -->
      <exception handlerClass="com.xxx.seam.CustomExceptionHandler"/>
      </pages>

      These should probably have higher precedence than standard configure-by-exception-class handlers.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pmuir Pete Muir
                  Reporter:
                  quilleashm Mike Quilleash
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: