GenericException.st
branchjv
changeset 20578 39641ba8d6e0
parent 20342 219a5a47e8b1
parent 20436 a4aae3f01bc1
child 21024 8734987eb5c7
--- a/GenericException.st	Tue Sep 20 11:37:33 2016 +0100
+++ b/GenericException.st	Mon Oct 03 12:44:41 2016 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1993 by Claus Gittinger
 	      All Rights Reserved
@@ -1130,6 +1132,14 @@
     "Created: / 23.7.1999 / 13:49:59 / stefan"
 !
 
+isProgramError
+    "redefined in all exceptions which are programmer's errors,
+     and which should probably not be ignored.
+     I.e. a global error handler should reject and let a debugger get control."
+
+    ^ false
+!
+
 isQuerySignal
     "return true, if this is a querySignal - always return false here"
 
@@ -1357,7 +1367,7 @@
 
 originalSignal
     "return the signal/exception which was originally raised.
-     For noHandler, that is my unhandled signal; for others, thats the exception itself."
+     For noHandler, that is my unhandled signal; for others, that's the exception itself."
 
     ^ self.
 !
@@ -2425,6 +2435,14 @@
 
 isNotification
     ^ false
+!
+
+isProgramError
+    "redefined in all exceptions which are programmer's errors,
+     and which should probably not be ignored.
+     I.e. a global error handler should reject and let a debugger get control."
+     
+    ^ self class isProgramError
 ! !
 
 !GenericException class methodsFor:'documentation'!