How to get BindException reference inside my Aspect?

M

MW

Hello,

I am using Spring Aspect to trap any Exception while
onSubmit(Request,Response,CommandObject,BindException) inside a
SimpleFormController.

The aspect is configured to act on proxy object for
org.springframework.web.servlet.mvc.Controller, so my methodInvocation
object ultimatelly wraps around handleRequest(Request,Response)

FYI, Inside my aspect I am using
public Object invoke(MethodInvocation methodInvocation) throws
Throwable {

try
{
methodInvocation.proceed();
}
catch(Exception ex)
{
---
}
}

Is there any way I can get BindException reference which was passed as
a parameter to onSubmit().

Thanks,
-MW
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,075
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top