#DOCUMENTATION by stefan
authorStefan Vogel <sv@exept.de>
Sun, 05 Apr 2020 00:21:49 +0200
changeset 25356 412ae94959e4
parent 25355 abe090376550
child 25357 cec6ca6e3af4
#DOCUMENTATION by stefan class: GenericException class comment/format in: #,
GenericException.st
--- a/GenericException.st	Sun Apr 05 00:21:37 2020 +0200
+++ b/GenericException.st	Sun Apr 05 00:21:49 2020 +0200
@@ -340,15 +340,33 @@
 !GenericException class methodsFor:'converting'!
 
 , anExceptionHandler
-    "return a SignalSet with myself and anExceptionHandler"
+    "return a Handler (SignalSet) that accepts myself and anExceptionHandler"
 
     anExceptionHandler isNil ifTrue:[
         "Ignore nil exceptionHandler - it may be due to a missing (not loaded) expception class"    
         ^ self.
     ].
+"/ Debug code for Developers - should go into Lint:    
+"/    (self accepts:anExceptionHandler) ifTrue:[
+"/        "anExceptionHandler is already accepted by myself"    
+"/        self breakPoint:#SignalSet info:'Already accepted'.
+"/        ^ self.
+"/    ].
+"/    (anExceptionHandler accepts:self) ifTrue:[
+"/        "myself is already accepted by anExceptionHandler"    
+"/        self breakPoint:#SignalSet info:'Already accepted'.
+"/        ^ anExceptionHandler.
+"/    ].
+
     ^ SignalSet with:self with:anExceptionHandler
 
-    "Modified (format): / 09-12-2019 / 11:09:28 / Stefan Vogel"
+    "
+        ArithmeticError, ContextError
+        Error, OsError
+        OsError, Error
+    "
+
+    "Modified (comment): / 05-04-2020 / 00:21:09 / Stefan Vogel"
 ! !