• 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: 5592
55
  • 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: 48652
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