Exception chaining: Difference between revisions

Content deleted Content added
m Exception Chaining moved to Exception chaining
wikify, reword, cat
Line 1:
'''Exception chaining''' is the process of designing and implementing [[exception handlershandling|exception handler]]s in an application so that individual [[exception]]s can be handled by one or more [[handlers]] in a [[hierarchical]] manner. For example, in an [[object-oriented programming]] [[model]], [[nested]] objects may receive exceptions at the lowest level. The object decides if it needs to handle the exception, and, canif thenneeded, [[chain]]can the exception to its [[parent]] by re[[raising]]reraise the exception and, sending it up the line. One example of the usefulness of this technique is [[mouse click]] handling. If you want to be able to dynamically control what object responds to a click, exception chaining is usually the most efficient way to accomplish this.
 
[[Category:Programming]]