Announcement Announcement Module
Collapse
No announcement yet.
BeanWrapperFieldSetMapper :: Exception trace missing Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • BeanWrapperFieldSetMapper :: Exception trace missing

    Hi,

    We have a situation where we are doing some property editors for converting dates to standard format. Now if the date coming in the file is invalid date, the editor throws an IllegalArgument exception with some default message.
    While going through the BeanWrapperFieldSetMapper, it appears that the mapFieldSet method only returns a BindingException with messages in it and ignores the stack trace.
    Which is causing to loose the original exception to be handled down the chain.
    Is there a better way to do get that exception ?

    Thanks
    Srinivas
    Last edited by srinivas_vsk; Dec 17th, 2009, 03:15 PM.

  • #2
    In 2.0 you just get the messages (but the default format should tell you everything that you need to know to decide what to do with the exception). 2.1 changes the signature of that method to simply throw the aggregate BindException.

    Comment


    • #3
      upgraded to 2.1

      Thanks
      Srinivas
      Last edited by srinivas_vsk; Dec 18th, 2009, 10:37 AM.

      Comment

      Working...
      X