3 Replies Latest reply on Feb 28, 2013 8:36 PM by Sham HC

    Throwable.jsp

    Bartek R Level 1

      Hi,

      I create /apps/sling/servlet/errorhandler/Throwable.jsp with simple sting in it.

      Can you tell me why when I have an error in content standard cq error handler displays it in place of component and custom error handler do it "somewhere"?

      For example in e middle of other component content.

      Thanks,

        • 1. Re: Throwable.jsp
          Sham HC Level 7

          Hi bartek,

           

            It deponds on type of error.  If  error code is 500 then Throwable.jsp gets called. If you want to verify explicitly have code like [1]. Sorry in case if i misunderstood your question.

           

          [1]

           

          int i = 0/0;

           

          Thanks,

          Sham

          • 2. Re: Throwable.jsp
            Bartek R Level 1

            Hi Sham,

            Creating jsp with error is not a problem

            But when I have on page 2 components like this

            <html><body>[component 1][component 2]</body></html>

            and in component 1 i have code <div>component 1</div>

            and component 2 throws an error

            and throwable.jsp has for example only text in it ERROR

            this word ERROR don't appear after component 1 body but it overwrites some part of it.

             

            so I can get something like this "...<span clas<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">..."

            is there any way to prevent such overwrites?

            Thanks

            • 3. Re: Throwable.jsp
              Sham HC Level 7

              Hi bartek,

               

                  I got the issue now.  Sorry not sure how to prevent it.

                 

              Thanks,

              Sham