Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes Throwable as Exception's constructor argument Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Throwable as Exception Watch "Throwable as Exception New topic
Author

Throwable as Exception's constructor argument

M Berg
Greenhorn

Joined: Sep 01, 2010
Posts: 13
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

Joined: Sep 20, 2010
Posts: 3371
    
    9
http://www.coderanch.com/t/513743/java-programmer-SCJP/certification/Exception-declaration#2330398
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36478
    
  16
You will probably find something useful in the Java™ Tutorials ( look for "chained exceptions").
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Throwable as Exception's constructor argument
 
Similar Threads
Defining parameterized UserDefinedExceptions in an Application
Runtime Exception (Wrap IOException)
Chained exception
problem with user defined exception
Purpose of Custom Exception Class