3 Replies Latest reply on Feb 21, 2008 11:30 PM by gavin.king

    Alright, who's the joker?

    monkeyden

      I found an entertaining example in the docs.  It appears to be a subtle joke, meant to amuse to author.


      http://docs.jboss.com/seam/2.0.1.GA/reference/en/html_single/#d0e4495


      <pages>   
         <exception class="javax.persistence.EntityNotFoundException">
            <http-error error-code="404"/>
         </exception>   
         ...   
      </pages>

        • 1. Re: Alright, who's the joker?
          jbalunas.jbalunas.jboss.org

          I think that he explains it in the sections above on annotations.


           The following exception results in a HTTP 404 error whenever it propagates out of the Seam component layer. It does not roll back the current transaction immediately when thrown, but the transaction will be rolled back if it the exception is not caught by another Seam component.
          
          @HttpError(errorCode=404)
          public class ApplicationException extends Exception { ... }
          


          • 2. Re: Alright, who's the joker?
            monkeyden

            Ah, that puts it into some context, but page not found resulting from entity not found is still pretty humorous.

            • 3. Re: Alright, who's the joker?
              gavin.king

              Kyle Burke wrote on Feb 21, 2008 10:40 PM:


              Ah, that puts it into some context, but page not found resulting from entity not found is still pretty humorous.


              Why humorous? Seems like a very semantically correct use of 404 to me...