• 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
Posts: 6583
84
  • 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
Marshal
Posts: 52581
119
  • 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
Boost this thread!