Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Throwable as Exception's constructor argument

 
M Berg
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi experts,

I have seen examples on throwing own exceptions with first two constructor styles, but not with Throwable object reference as argument.
What's the idea with Throwable as argument? Appreciate any real life simple example on that.



Many thanks again,
Kind regards MB
 
Stephan van Hulst
Bartender
Pie
Posts: 5415
52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.coderanch.com/t/513743/java-programmer-SCJP/certification/Exception-declaration#2330398
 
Campbell Ritchie
Sheriff
Posts: 48445
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will probably find something useful in the Java™ Tutorials ( look for "chained exceptions").
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic