#DOCUMENTATION by cg
authorClaus Gittinger <cg@exept.de>
Mon, 05 Feb 2018 00:40:49 +0100
changeset 22531 8675adc00fde
parent 22530 4af6ed4920e8
child 22532 433d188c6654
#DOCUMENTATION by cg class: ExceptionHandlerSet category of: #on:do: class: ExceptionHandlerSet class comment/format in: #documentation
ExceptionHandlerSet.st
--- a/ExceptionHandlerSet.st	Fri Feb 02 23:22:49 2018 +0100
+++ b/ExceptionHandlerSet.st	Mon Feb 05 00:40:49 2018 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1999 by eXept Software AG
               All Rights Reserved
@@ -42,7 +44,7 @@
     An ExceptionHandlerSet allows a group of unrelated signals to be handled
     by individual handlers - their evaluation is equivalent to a corresponding
     number of nested signal handlers, but more efficient and
-    somwehat easier to program.
+    somwehat easier to program and read.
 
     [author:]
         Stefan Vogel
@@ -122,21 +124,6 @@
     "Created: / 26.7.1999 / 09:51:37 / stefan"
 ! !
 
-!ExceptionHandlerSet methodsFor:'adding'!
-
-on:anExceptionHandler do:aHandlerBlock
-    "add a handler for aSignal to the set"
-
-    anExceptionHandler isBehavior ifTrue:[
-        "load class, if not yet loaded"
-        anExceptionHandler autoload.
-    ].
-    anExceptionHandler isExceptionHandler ifFalse:[
-        SignalError raiseWith:anExceptionHandler errorString:' - trying to add a non-exceptionHandler to a SignalSet'.
-    ].
-    self at:anExceptionHandler put:aHandlerBlock
-! !
-
 !ExceptionHandlerSet methodsFor:'queries'!
 
 accepts:anExceptionHandler
@@ -318,6 +305,21 @@
     "Modified: / 26.7.1999 / 11:36:47 / stefan"
 ! !
 
+!ExceptionHandlerSet methodsFor:'setup'!
+
+on:anExceptionHandler do:aHandlerBlock
+    "add a handler for aSignal to the set"
+
+    anExceptionHandler isBehavior ifTrue:[
+        "load class, if not yet loaded"
+        anExceptionHandler autoload.
+    ].
+    anExceptionHandler isExceptionHandler ifFalse:[
+        SignalError raiseWith:anExceptionHandler errorString:' - trying to add a non-exceptionHandler to a SignalSet'.
+    ].
+    self at:anExceptionHandler put:aHandlerBlock
+! !
+
 !ExceptionHandlerSet methodsFor:'testing'!
 
 isExceptionHandler