#64 Passing up runtime exceptions but not failing


Would it be possible to allow user runtime exceptions
to be passed up while still having stop-on-errors =
false? I supposed this would mean that only non-dozer
mapping exceptions are not caught.

I nned to be able to catch business exceptions from
domain objects, and some fields can't have setters,a s
they are set in the constructor.


  • Matt Tierney

    Matt Tierney - 2006-08-13

    Logged In: YES

    My initial thoughts are that this could open a pandoras
    box. The mappingexception thrown from dozer is a runtime
    exception itself. But i could be wrong or just
    misunderstand the feature request. But if you attach a
    unit test and associated files that illustrates the use
    case, we can take a deeper look at this and reopen the
    feature request

    In general, I wouldnt recommend setting stop-on-
    errors=false because it can lead to valid exceptions going
    unnoticed. Of course, there are exceptions to this rule,
    but I would rather know when a mapping exception occurs so
    that fixed.

  • Matt Tierney

    Matt Tierney - 2006-08-13
    • status: open --> wont-fix
  • Franz Garsombke

    Franz Garsombke - 2006-09-06
    • assigned_to: nobody --> fgarsombke
    • status: wont-fix --> open
  • Matt Tierney

    Matt Tierney - 2006-09-27
    • status: open --> pending
  • Matt Tierney

    Matt Tierney - 2006-10-16
    • status: pending --> closed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks