Exception Guarantees - Exception Handling in Software - Condition Systems

Condition Systems

Common Lisp, Dylan and Smalltalk have a condition system (see Common Lisp Condition System) that encompasses the aforementioned exception handling systems. In those languages or environments the advent of a condition (a "generalisation of an error" according to Kent Pitman) implies a function call, and only late in the exception handler the decision to unwind the stack may be taken.

Conditions are a generalization of exceptions. When a condition arises, an appropriate condition handler is searched for and selected, in stack order, to handle the condition. Conditions that do not represent errors may safely go unhandled entirely; their only purpose may be to propagate hints or warnings toward the user.

Read more about this topic:  Exception Guarantees, Exception Handling in Software

Famous quotes containing the words condition and/or systems:

    What is to be done with people who can’t read a Sunday paper without messing it all up?... Show me a Sunday paper which has been left in a condition fit only for kite flying, and I will show you an antisocial and dangerous character who has left it that way.
    Robert Benchley (1889–1945)

    People stress the violence. That’s the smallest part of it. Football is brutal only from a distance. In the middle of it there’s a calm, a tranquility. The players accept pain. There’s a sense of order even at the end of a running play with bodies stewn everywhere. When the systems interlock, there’s a satisfaction to the game that can’t be duplicated. There’s a harmony.
    Don Delillo (b. 1926)