Back: Exception-exception signaling Up: Base classes Forward: ExceptionSet class-instance creation   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.69 ExceptionSet

Defined in namespace Smalltalk
Superclass: Kernel.TrappableEvent
Category: Language-Exceptions

My instances are not real exceptions: they can only be used as arguments to #on:do:... methods in BlockClosure. They act as shortcuts that allows you to use the same handler for many exceptions without having to write duplicate code

1.69.1 ExceptionSet class: instance creation  (class)
1.69.2 ExceptionSet: enumerating  (instance)


1.69.1 ExceptionSet class: instance creation

new
Private - Answer a new, empty ExceptionSet


1.69.2 ExceptionSet: enumerating

allExceptionsDo: aBlock
Private - Evaluate aBlock for every exception in the receiver. Answer the receiver

goodness: exception
Answer how good the receiver is at handling the given exception. A negative value indicates that the receiver is not able to handle the exception.

handles: exception
Answer whether the receiver handles `exception'.



Back: ExceptionSet class-instance creation Up: ExceptionSet Forward: False   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on May, 22 2008 using texi2html