Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-686

Docs: Section 26.1. Exception Mappers needs correction

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.17.Final
    • 2.3.2.Final, 3.0.16.Final
    • jaxrs
    • None

    Description

      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();
              }
      
      }
           
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: