Forums Register Login

doubt in error page for DD

+Pie Number of slices to send: Send
Hi
Please clear following doubt...

I. while declaring multiple <exception-type> in DD do we need to take care for superclass-subclass relationship as we did in catch block...catching subclass exception first....or in any sequence we can define them in DD,and it will take care of more specific first ...

II. say for an Error code "ABC" exception type is "ABCException" then either we can define <error-code> or <exception-type> ..not both..plz confirm.

Thanks a lot....
+Pie Number of slices to send: Send
Hi,

I don't think the sequence like try-catch block is required in DD.

About your second question, I do not understand the reletionship beetween the Error code and Exceptions. The Error codes are HTTp Response specific and Exceptions are Java specific. For Some uncaught Exceptions The Server May throws 500 (Internal Server Error) code.

I can define both in the DD.

Thanks
+Pie Number of slices to send: Send
 


say for an Error code "ABC" exception type is "ABCException" then either we can define <error-code> or <exception-type> ..not both..plz confirm.



<error-code> should be numbers like 404(notFoundError)

<error-code>
404
</error-code>
+Pie Number of slices to send: Send
ok,
From the above what i find is-

There is no mapping between error code(which is a number) and exception type..they are independent of each-other.

And we can define them in two different <error-page> tag.

Actually i got confused..with HDFS page 594 Bang box.

which says "you can not use <error-code> and <exception-type> togather!"

Thanks Narendra and Vishnu....
+Pie Number of slices to send: Send
The container will match the closest exception in java heirarchy and if not found a match, then it will look at the root cause and try match it again. Finally, it will try to match an error-code.
+Pie Number of slices to send: Send
What HFSJ means by "cannot use exception-type and error-code together" is that for one error-page block, you must have :
1. Either an exception-type or an error-code element
2. a location element pointing to the error page to use.

But you can define multiple error-page blocks in your DD
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 681 times.
Similar Threads
Generics Doubt
error-page doubt
error page doubt
Doubt on send Error
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:02:12.