Win a copy of Functional Reactive Programming this week in the Other Languages 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
Posts: 6323
78
  • 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
Pie
Posts: 50212
79
  • 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