File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Throwable as Exception's constructor argument

 
M Berg
Greenhorn
Posts: 13
  • 0
  • 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: 4826
34
Chrome Netbeans IDE Windows
  • 0
  • 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: 47229
52
  • 0
  • 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").
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic