exception propogation from jersey class
-
11-09-2019 - |
Question
Could some one give me some pointers as to how do i propogate an exception from jersey class to lets say a JSP, along with some examples if possible..
Thanks in advance Adhir
Solution
Use a Runtime exception to propogate the exception.. WebApplicationException in the JSR311 api does the same thing for you.. if the client is a web app.
Otherwise a checked exception would suffice
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow