users@jersey.java.net

[Jersey] How to catch a exception by a filter or interceptor

From: jiangc1987 <jiangcheng198745_at_sina.com>
Date: Thu, 9 Jun 2011 19:34:34 -0700 (PDT)

I want to writer a interceptor/filter to implement the fuction as below.
for Example:
 If I login the system,with a wrong passworld, the old system will throw a
exception ,,Now I want ot catch this exception,Then re-write the response
and tell the client that he/she input a wrong passowrd

how shold i do it?
thanks advance.

--
View this message in context: http://jersey.576304.n2.nabble.com/How-to-catch-a-exception-by-a-filter-or-interceptor-tp6460709p6460709.html
Sent from the Jersey mailing list archive at Nabble.com.