Topic: object-defined exception handling

topics > computer science > programming > Group: exception handling

exception handling by recovery block or rescue clause
exception handling by try..catch
exceptions from invalid input


Exception handling can be attached to the definition of procedures and data objects. It supersedes the object's definition when the object fails. With procedures, this provides default exception handling for all invocations of the procedure. With data objects, it provides responses to range failure and other data inconsistencies. (cbb 5/80)
Subtopic: exceptions for complete definition up

Quote: a database schema needs a consistent definition of all terms; does not exist, so use exceptions [»borgA10_1986]
Quote: exception translation -- catch low-level exceptions and throw new exceptions in terms of the high-level abstraction [»blocJ_2001]

Subtopic: failure atomic up

Quote: failure atomic -- a failed method does not change the state; leave the object in a well-defined, usable state [»blocJ_2001]

Subtopic: exceptions for modified types, variants up

Quote: handle modified types by defining error handlers for each version; these handlers fixup an old version's behavior [»zdonSB10_1986]
Quote: an exception handler defines interpreted extensions to handle variants and exceptional data [»borgA10_1986]
Quote: handle exceptional subclasses and instances by exception handling triggered by the exceptional data [»borgA10_1986]

Subtopic: exception returns up

Quote: a CLU procedure can either return or signal an exceptional condition; both can provide result objects

Subtopic: early object-oriented exceptions up

QuoteRef: goodJB12_1975 ;;685 object-oriented exception handlers eg AED allows exception handler as part of object-definition
QuoteRef: goodJB12_1975 ;;686 explicit declaration of exceptions possible from a procedure eg returns (fixed) [exceptional: ...]
QuoteRef: reynCF3_1971 ;;218 handling exceptions-- linked data list with each section containing exceptional handling

Related Topics up

Topic: exception handling by recovery block or rescue clause (22 items)
Topic: exception handling by try..catch (53 items)
Topic: exceptions from invalid input
(4 items)

Updated barberCB 9/04
Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.