Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-4694

Docs: Section 26.1. Exception Mappers needs correction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.1.CR1, 7.0.1.GA
    • None
    • REST
    • None
    • EAP 7.0.1

      Method toResponse(E exception) in implementation example needs correction of its visibility to public (missed). Also better text formatting should be used (indentation). Full example should be:

      @Provider
      public class EJBExceptionMapper implements ExceptionMapper<javax.ejb.EJBException>
      {
      
              public Response toResponse(EJBException exception) {
                      return Response.status(500).build();
              }
      
      }
           
      

              rsigal@redhat.com Ronald Sigal
              pjanouse@redhat.com Pavel Janousek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: