Back: Exception-still unclassified 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.71 ExceptionSet

Defined in namespace Smalltalk
Superclass: Object
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.71.1 ExceptionSet class: instance creation  (class)
1.71.2 ExceptionSet: enumerating  (instance)
1.71.3 ExceptionSet: instance creation  (instance)


1.71.1 ExceptionSet class: instance creation

new
Private - Answer a new, empty ExceptionSet


1.71.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'.


1.71.3 ExceptionSet: instance creation

, aTrappableEvent
Answer an ExceptionSet containing all the exceptions in the receiver and all the exceptions in aTrappableEvent



Back: ExceptionSet-enumerating 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 February, 22 2012 using texi2html