Exception chaining: Difference between revisions

Content deleted Content added
No edit summary
m Robot-assisted disambiguation (you can help!): Java programming language
Line 3:
For example, a method to play a movie file might handle exceptions in reading the file by re-throwing them inside an exception of movie playing. The user interface might display the time the error occurred extracted from the movie playing exception (<code>movieplayingexception.time</code>) and the name of the file extracted from the file reading exception (<code>movieplayingexception.cause.filename</code>).
 
Throwing the right kind of exceptions is particularly enforced by [[exception handling#Checked exceptions|checked exceptions]] in the [[Java (programming language)|Java programming language]], and starting with language version 1.4 all exceptions support chaining.
 
== References ==