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.
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 . Sorry in case if i misunderstood your question.
int i = 0/0;
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?
I got the issue now. Sorry not sure how to prevent it.