#FEATURE by exept
authorClaus Gittinger <cg@exept.de>
Fri, 23 Aug 2019 21:49:59 +0200
changeset 24593 96186b93d6e2
parent 24592 b003befd8100
child 24594 9d184fa30487
#FEATURE by exept class: GenericException added: #raiseSignalIn:
GenericException.st
--- a/GenericException.st	Fri Aug 23 21:49:35 2019 +0200
+++ b/GenericException.st	Fri Aug 23 21:49:59 2019 +0200
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 1993 by Claus Gittinger
 	      All Rights Reserved
@@ -2427,6 +2425,22 @@
     "Modified: / 19-04-2013 / 09:37:50 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
+raiseSignalIn:aContext
+    "actually raise an exception (whatever the proceedability is)."
+
+    <context: #return>
+    <resource: #skipInDebuggersWalkBack>
+
+    raiseContext := aContext.
+    (suspendedContext isNil or:[handlerContext notNil]) ifTrue:[
+        suspendedContext := raiseContext sender
+    ].
+    proceedable := self mayProceed.
+    ^ self doRaise
+
+    "Modified: / 19-04-2013 / 09:37:50 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
 raiseWith:aParameter errorString:aString
     "raise the signal nonproceedable.
      The argument, aString is used as messageText,