You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by GitBox <gi...@apache.org> on 2020/06/21 20:42:33 UTC

[GitHub] [fineract] thesmallstar edited a comment on pull request #1079: [WIP] Added AvoidHidingCauseException Checkstyle (FINERACT-942)

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