#OTHER by cg
in ignoreIn:
return the default resume value instead of nil.
--- a/GenericException.st Tue Jun 20 13:36:14 2017 +0200
+++ b/GenericException.st Tue Jun 20 13:36:16 2017 +0200
@@ -1088,22 +1088,24 @@
ignoreIn:aBlock
"evaluate the argument, aBlock.
- Ignore the receiver-exception during evaluation - i.e. simply continue.
+ Ignore the receiver-exception during evaluation - i.e. simply continue with the default resume value.
This makes only sense for some signals, such as UserInterrupt
or AbortOperationRequest, because continuing after an exception without any cleanup
often leads to followup-errors."
- ^ self handle:[:ex | ex proceedWith:nil] do:aBlock.
+ ^ self handle:[:ex | ex proceed] do:aBlock.
"
Object messageNotUnderstoodSignal ignoreIn:[
123 size open
]
+
+ DomainError ignoreIn:[ -1.0 log10 ]
"
"Created: / 23-07-1999 / 14:06:40 / stefan"
- "Modified: / 07-12-2006 / 17:05:35 / cg"
"Modified (comment): / 24-02-2017 / 11:15:44 / stefan"
+ "Modified (comment): / 20-06-2017 / 13:35:03 / cg"
! !
!GenericException class methodsFor:'testing'!