Exception chaining: Difference between revisions

Content deleted Content added
m AWB assisted spelling of "occurred"; see WP:Typo
Raxmus (talk | contribs)
m typo
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 particularilyparticularly enforced by [[exception handling#Checked exceptions|checked exceptions]] in the [[Java programming language]], and starting with language version 1.4 all exceptions support chaining.
 
== References ==