fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [fineract] thesmallstar edited a comment on pull request #1079: [WIP] Added AvoidHidingCauseException Checkstyle (FINERACT-942)
Date Sun, 21 Jun 2020 20:42:33 GMT

thesmallstar edited a comment on pull request #1079:
URL: https://github.com/apache/fineract/pull/1079#issuecomment-647179155


   @vorburger @ptuomola 
   So I will be doing this:
   
   ```
   try{
   //intead of throw new Y();
   new X()
   throw x.initcause(y);
   }catch(x){
    //rethrow or do something.  
   }
   ```
   Problem:
   What if Y is coming from some library function like EmptyResultDataAccessException which
comes from JDBCtemplate.queryForObject(), in that case I could not figure out a way to do
this. Can you add anything to this?(I hope I am making some sense here)
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message