Results 1 to 3 of 3

Thread: BeanWrapperFieldSetMapper :: Exception trace missing

  1. #1
    Join Date
    Oct 2009
    Location
    Minneapolis, MN
    Posts
    137

    Question 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 at 03:15 PM.

  2. #2
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    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.

  3. #3
    Join Date
    Oct 2009
    Location
    Minneapolis, MN
    Posts
    137

    Default

    upgraded to 2.1

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •