ExceptionHandlerSet.st
author Claus Gittinger <cg@exept.de>
Tue, 17 Aug 2004 17:31:59 +0200
changeset 8478 100e53cacce4
parent 8290 520c27f8cae2
child 8589 18652b9463f6
permissions -rw-r--r--
*** empty log message ***
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4466
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
     1
"
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
     2
 COPYRIGHT (c) 1999 by eXept Software AG
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
     3
              All Rights Reserved
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
     4
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
     5
 This software is furnished under a license and may be used
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
     6
 only in accordance with the terms of that license and with the
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
     8
 be provided or otherwise made available to, or used by, any
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
     9
 other person.  No title to or ownership of the software is
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
    10
 hereby transferred.
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
    11
"
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
    12
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    13
6206
59d1ec1e1ed5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4546
diff changeset
    14
"{ Package: 'stx:libbasic' }"
59d1ec1e1ed5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4546
diff changeset
    15
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    16
IdentityDictionary subclass:#ExceptionHandlerSet
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:''
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    20
	category:'Kernel-Exceptions'
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    21
!
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    22
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    23
!ExceptionHandlerSet class methodsFor:'documentation'!
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    24
4466
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
    25
copyright
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
    26
"
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
    27
 COPYRIGHT (c) 1999 by eXept Software AG
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
    28
              All Rights Reserved
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
    29
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
    30
 This software is furnished under a license and may be used
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
    31
 only in accordance with the terms of that license and with the
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
    33
 be provided or otherwise made available to, or used by, any
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
    34
 other person.  No title to or ownership of the software is
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
    35
 hereby transferred.
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
    36
"
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
    37
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
    38
!
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4464
diff changeset
    39
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    40
documentation
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    41
"
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    42
    A ExceptionHandlerSet allows a group of unrelated signals to be handled
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    43
    by individual handlers - their evaluation is equivalent to a corresponding
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    44
    number of nested signal handlers, but more efficient and
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    45
    somwehat easier to program.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    46
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    47
    [author:]
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    48
        Stefan Vogel
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    49
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    50
    [see also:]
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    51
        Exception Signal SignalSet
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    52
"
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    53
!
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    54
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    55
examples
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    56
"
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    57
    examples to be added.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    58
                                                                [exBegin]
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    59
         |h num|
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    60
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    61
         h := ExceptionHandlerSet new.
8290
520c27f8cae2 examples
Stefan Vogel <sv@exept.de>
parents: 8237
diff changeset
    62
         h on:ZeroDivide
520c27f8cae2 examples
Stefan Vogel <sv@exept.de>
parents: 8237
diff changeset
    63
           do:[:ex | 'division by zero' printCR. ex proceed].
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    64
8290
520c27f8cae2 examples
Stefan Vogel <sv@exept.de>
parents: 8237
diff changeset
    65
         h on:HaltInterrupt
520c27f8cae2 examples
Stefan Vogel <sv@exept.de>
parents: 8237
diff changeset
    66
           do:[:ex | 'halt encountered ' printCR. ex proceed].
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    67
8290
520c27f8cae2 examples
Stefan Vogel <sv@exept.de>
parents: 8237
diff changeset
    68
         h on:DomainError
520c27f8cae2 examples
Stefan Vogel <sv@exept.de>
parents: 8237
diff changeset
    69
           do:[:ex | 'domain error  ' printCR. ex proceed].
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    70
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    71
         h handleDo:[
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    72
            num := 0.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    73
8290
520c27f8cae2 examples
Stefan Vogel <sv@exept.de>
parents: 8237
diff changeset
    74
            'now dividing' printCR.
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    75
            1 // num.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    76
8290
520c27f8cae2 examples
Stefan Vogel <sv@exept.de>
parents: 8237
diff changeset
    77
            'now doing bad arcSin' printCR.
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    78
            num := 50.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    79
            num arcSin.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    80
8290
520c27f8cae2 examples
Stefan Vogel <sv@exept.de>
parents: 8237
diff changeset
    81
            'now halting' printCR.
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    82
            self halt.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    83
         ]
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    84
                                                                [exEnd]
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    85
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    86
                                                                [exBegin]
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    87
         |h num|
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    88
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    89
         h := ExceptionHandlerSet new.
8290
520c27f8cae2 examples
Stefan Vogel <sv@exept.de>
parents: 8237
diff changeset
    90
         h on:ZeroDivide
520c27f8cae2 examples
Stefan Vogel <sv@exept.de>
parents: 8237
diff changeset
    91
           do:[:ex | 'division by zero' printCR. ex proceed].
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    92
8290
520c27f8cae2 examples
Stefan Vogel <sv@exept.de>
parents: 8237
diff changeset
    93
         h on:HaltInterrupt
520c27f8cae2 examples
Stefan Vogel <sv@exept.de>
parents: 8237
diff changeset
    94
           do:[:ex | 'halt encountered ' printCR. ex proceed].
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    95
8290
520c27f8cae2 examples
Stefan Vogel <sv@exept.de>
parents: 8237
diff changeset
    96
         h on:DomainError
520c27f8cae2 examples
Stefan Vogel <sv@exept.de>
parents: 8237
diff changeset
    97
           do:[:ex | 'domain error ' printCR. ex proceed].
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    98
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    99
         [
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   100
            num := 0.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   101
8290
520c27f8cae2 examples
Stefan Vogel <sv@exept.de>
parents: 8237
diff changeset
   102
            'now dividing' printCR.
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   103
            1 // num.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   104
8290
520c27f8cae2 examples
Stefan Vogel <sv@exept.de>
parents: 8237
diff changeset
   105
            'now doing bad arcSin' printCR.
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   106
            num := 50.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   107
            num arcSin.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   108
8290
520c27f8cae2 examples
Stefan Vogel <sv@exept.de>
parents: 8237
diff changeset
   109
            'now halting' printCR.
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   110
            self halt.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   111
         ] valueWithExceptionHandler:h
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   112
                                                                [exEnd]
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   113
"
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   114
! !
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   115
8478
100e53cacce4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8290
diff changeset
   116
!ExceptionHandlerSet methodsFor:'Compatibility-VW5.4'!
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   117
8478
100e53cacce4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8290
diff changeset
   118
on:aSignalOrException handle:aHandler
8237
afaad9c5cad2 Add #on:do: as synonym for #on:handle:
Stefan Vogel <sv@exept.de>
parents: 6629
diff changeset
   119
    "add a handler for aSignal to the set"
afaad9c5cad2 Add #on:do: as synonym for #on:handle:
Stefan Vogel <sv@exept.de>
parents: 6629
diff changeset
   120
8478
100e53cacce4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8290
diff changeset
   121
    self on:aSignalOrException do:aHandler
8237
afaad9c5cad2 Add #on:do: as synonym for #on:handle:
Stefan Vogel <sv@exept.de>
parents: 6629
diff changeset
   122
8478
100e53cacce4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8290
diff changeset
   123
    "Created: / 26.7.1999 / 09:51:37 / stefan"
100e53cacce4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8290
diff changeset
   124
! !
100e53cacce4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8290
diff changeset
   125
100e53cacce4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8290
diff changeset
   126
!ExceptionHandlerSet methodsFor:'adding'!
100e53cacce4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8290
diff changeset
   127
100e53cacce4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8290
diff changeset
   128
on:aSignalOrException do:aHandler
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   129
    "add a handler for aSignal to the set"
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   130
8478
100e53cacce4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8290
diff changeset
   131
    aSignalOrException isBehavior ifTrue:[
100e53cacce4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8290
diff changeset
   132
        aSignalOrException isLoaded ifFalse:[
100e53cacce4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8290
diff changeset
   133
            aSignalOrException autoload.
100e53cacce4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8290
diff changeset
   134
        ].
100e53cacce4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8290
diff changeset
   135
    ].
100e53cacce4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8290
diff changeset
   136
    self at:aSignalOrException put:aHandler
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   137
! !
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   138
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   139
!ExceptionHandlerSet methodsFor:'queries'!
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   140
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   141
accepts:aSignal
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   142
    "return true, if the receiver accepts the argument, aSignal.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   143
     (i.e. if any of the receivers elements is aSignal or a parent of it)."
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   144
4513
Claus Gittinger <cg@exept.de>
parents: 4491
diff changeset
   145
    self keysDo:[:sig | (sig==aSignal or:[sig accepts:aSignal]) ifTrue:[^ true]].
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   146
    ^ false
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   147
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   148
    "Created: / 26.7.1999 / 09:53:09 / stefan"
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   149
!
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   150
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   151
handlerForSignal:signal
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   152
    "answer the handler block for signal"
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   153
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   154
    self keysAndValuesDo:[:sig :handler|
4513
Claus Gittinger <cg@exept.de>
parents: 4491
diff changeset
   155
        (sig == signal or:[sig accepts:signal]) ifTrue:[
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   156
            ^ handler.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   157
        ].
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   158
    ].
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   159
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   160
    ^ nil
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   161
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   162
    "Modified: / 26.7.1999 / 09:59:43 / stefan"
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   163
    "Created: / 26.7.1999 / 11:29:29 / stefan"
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   164
!
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   165
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   166
handlerForSignal:signal context:theContext originator:originator
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   167
    "answer the handler block for the signal from originator.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   168
     The block is retrieved from aContext.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   169
     Answer nil if the signal is not handled"
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   170
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   171
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   172
    (theContext selector ~~ #'handleDo:from:'
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   173
     or:[(theContext argAt:2) == originator]) ifTrue:[
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   174
        self keysAndValuesDo:[:sig :handler|
4513
Claus Gittinger <cg@exept.de>
parents: 4491
diff changeset
   175
            (sig == signal or:[sig accepts:signal]) ifTrue:[
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   176
                ^ handler.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   177
            ].
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   178
        ].
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   179
    ].
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   180
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   181
    ^ nil
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   182
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   183
    "Created: / 26.7.1999 / 09:53:28 / stefan"
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   184
    "Modified: / 26.7.1999 / 09:59:43 / stefan"
4473
793078981f01 added #handlingSignalInContext:
Claus Gittinger <cg@exept.de>
parents: 4466
diff changeset
   185
!
793078981f01 added #handlingSignalInContext:
Claus Gittinger <cg@exept.de>
parents: 4466
diff changeset
   186
4546
ecd03e12cce3 Add #handlerProtectedBlock:inContext
Stefan Vogel <sv@exept.de>
parents: 4513
diff changeset
   187
handlerProtectedBlock:doBlock inContext:context
ecd03e12cce3 Add #handlerProtectedBlock:inContext
Stefan Vogel <sv@exept.de>
parents: 4513
diff changeset
   188
    "set the handlerProtectedBlock in context"
ecd03e12cce3 Add #handlerProtectedBlock:inContext
Stefan Vogel <sv@exept.de>
parents: 4513
diff changeset
   189
ecd03e12cce3 Add #handlerProtectedBlock:inContext
Stefan Vogel <sv@exept.de>
parents: 4513
diff changeset
   190
    context argAt:1 put:doBlock.
ecd03e12cce3 Add #handlerProtectedBlock:inContext
Stefan Vogel <sv@exept.de>
parents: 4513
diff changeset
   191
ecd03e12cce3 Add #handlerProtectedBlock:inContext
Stefan Vogel <sv@exept.de>
parents: 4513
diff changeset
   192
    "
ecd03e12cce3 Add #handlerProtectedBlock:inContext
Stefan Vogel <sv@exept.de>
parents: 4513
diff changeset
   193
      |s|
ecd03e12cce3 Add #handlerProtectedBlock:inContext
Stefan Vogel <sv@exept.de>
parents: 4513
diff changeset
   194
ecd03e12cce3 Add #handlerProtectedBlock:inContext
Stefan Vogel <sv@exept.de>
parents: 4513
diff changeset
   195
      s := ExceptionHandlerSet new.
ecd03e12cce3 Add #handlerProtectedBlock:inContext
Stefan Vogel <sv@exept.de>
parents: 4513
diff changeset
   196
      s at:Error put:[:ex| ex restartDo:[55]].
ecd03e12cce3 Add #handlerProtectedBlock:inContext
Stefan Vogel <sv@exept.de>
parents: 4513
diff changeset
   197
ecd03e12cce3 Add #handlerProtectedBlock:inContext
Stefan Vogel <sv@exept.de>
parents: 4513
diff changeset
   198
      s handleDo:[1 // 0]
ecd03e12cce3 Add #handlerProtectedBlock:inContext
Stefan Vogel <sv@exept.de>
parents: 4513
diff changeset
   199
    "
ecd03e12cce3 Add #handlerProtectedBlock:inContext
Stefan Vogel <sv@exept.de>
parents: 4513
diff changeset
   200
ecd03e12cce3 Add #handlerProtectedBlock:inContext
Stefan Vogel <sv@exept.de>
parents: 4513
diff changeset
   201
!
ecd03e12cce3 Add #handlerProtectedBlock:inContext
Stefan Vogel <sv@exept.de>
parents: 4513
diff changeset
   202
4476
696ac99f2a52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4473
diff changeset
   203
handlingExceptionInContext:theContext
696ac99f2a52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4473
diff changeset
   204
    "answer the handling exceptionHandlerSet from aContext."
4473
793078981f01 added #handlingSignalInContext:
Claus Gittinger <cg@exept.de>
parents: 4466
diff changeset
   205
793078981f01 added #handlingSignalInContext:
Claus Gittinger <cg@exept.de>
parents: 4466
diff changeset
   206
    ^ self
6510
03f6f70fd7e8 + isSignalOrSignalSet
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
   207
!
03f6f70fd7e8 + isSignalOrSignalSet
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
   208
6629
873db9bf2ff8 #isExceptionHandler instead of #isSignalOrSignalSet
Stefan Vogel <sv@exept.de>
parents: 6510
diff changeset
   209
isExceptionHandler
873db9bf2ff8 #isExceptionHandler instead of #isSignalOrSignalSet
Stefan Vogel <sv@exept.de>
parents: 6510
diff changeset
   210
    "return true, if the receiver responds to the exception handler protocol,
873db9bf2ff8 #isExceptionHandler instead of #isSignalOrSignalSet
Stefan Vogel <sv@exept.de>
parents: 6510
diff changeset
   211
     especially to the #accepts: and #handles: messages"
6510
03f6f70fd7e8 + isSignalOrSignalSet
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
   212
03f6f70fd7e8 + isSignalOrSignalSet
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
   213
    ^ true
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   214
! !
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   215
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   216
!ExceptionHandlerSet methodsFor:'save evaluation'!
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   217
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   218
handleDo:aBlock
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   219
    "evaluate the argument, aBlock.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   220
     If any of the signals in the receiver is raised during evaluation,
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   221
     evaluate the handleBlock passing it an Exception argument.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   222
     The handler may decide how to react to the signal by sending
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   223
     a corresponding message to the exception (see there).
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   224
     If the signal is not raised, return the value of evaluating
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   225
     aBlock."
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   226
4546
ecd03e12cce3 Add #handlerProtectedBlock:inContext
Stefan Vogel <sv@exept.de>
parents: 4513
diff changeset
   227
    <context: #return>
4491
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   228
    <exception: #handle>
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   229
4491
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   230
    "/ thisContext markForHandle. -- same as above pragma
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   231
    ^ aBlock value  "the real logic is in Exception>>doRaise"
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   232
4491
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   233
   "
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   234
    |h num|
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   235
4491
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   236
    h := ExceptionHandlerSet new.
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   237
    h on:(Number divisionByZeroSignal)
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   238
      handle:[:ex | 'division by zero' printNL. ex proceed].
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   239
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   240
    h on:(Object haltSignal)
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   241
      handle:[:ex | 'halt encountered ' printNL. ex proceed].
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   242
4491
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   243
    h on:(Float domainErrorSignal)
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   244
      handle:[:ex | 'domain error  ' printNL. ex proceed].
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   245
4491
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   246
    h handleDo:[
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   247
       num := 0.
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   248
4491
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   249
       'now dividing' printNL.
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   250
       1 // num.
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   251
4491
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   252
       'now doing bad arcSin' printNL.
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   253
       num := 50.
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   254
       num arcSin.
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   255
4491
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   256
       'now halting' printNL.
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   257
       self halt.
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   258
    ]
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   259
    "
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   260
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   261
    "Created: / 26.7.1999 / 09:56:44 / stefan"
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   262
    "Modified: / 26.7.1999 / 11:01:53 / stefan"
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   263
!
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   264
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   265
handleDo:aBlock from:originator
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   266
    "evaluate the argument, aBlock.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   267
     If any of the signals in the receiver is raised during evaluation,
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   268
     evaluate the handleBlock passing it an Exception argument.
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   269
     The handler may decide how to react to the signal by sending
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   270
     a corresponding message to the exception (see there).
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   271
     If the signal is not raised, return the value of evaluating
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   272
     aBlock."
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   273
4546
ecd03e12cce3 Add #handlerProtectedBlock:inContext
Stefan Vogel <sv@exept.de>
parents: 4513
diff changeset
   274
    <context: #return>
4491
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   275
    <exception: #handle>
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   276
4491
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   277
    "/ thisContext markForHandle. -- same as above pragma
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   278
    ^ aBlock value  "the real logic is in Exception>>doRaise"
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   279
4491
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   280
   "
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   281
    |h num|
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   282
4491
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   283
    h := ExceptionHandlerSet new.
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   284
    h on:(Number divisionByZeroSignal)
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   285
      handle:[:ex | 'division by zero' printNL. ex proceed].
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   286
4491
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   287
    h on:(Object haltSignal)
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   288
      handle:[:ex | 'halt encountered ' printNL. ex proceed].
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   289
4491
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   290
    h on:(Float domainErrorSignal)
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   291
      handle:[:ex | 'domain error  ' printNL. ex proceed].
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   292
4491
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   293
    h handleDo:[
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   294
       'now halting' printNL.
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   295
       self halt.
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   296
4491
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   297
       'the following exceptions are not handled.
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   298
        A debugger is opened' printNL.
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   299
4491
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   300
       'now dividing' printNL.
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   301
       num := 0.
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   302
       1 // num.
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   303
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   304
       'now doing bad arcSin' printNL.
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   305
       num := 50.
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   306
       num arcSin.
5041cae5651c use new pragma to flag exception frames.
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   307
    ] from:self
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   308
    "
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   309
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   310
    "Created: / 26.7.1999 / 09:56:44 / stefan"
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   311
    "Modified: / 26.7.1999 / 11:36:47 / stefan"
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   312
! !
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   313
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   314
!ExceptionHandlerSet class methodsFor:'documentation'!
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   315
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   316
version
8478
100e53cacce4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8290
diff changeset
   317
    ^ '$Header: /cvs/stx/stx/libbasic/ExceptionHandlerSet.st,v 1.13 2004-08-17 15:31:59 cg Exp $'
4464
cec93c942c14 Use context flag for exception handling instead of searching for
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   318
! !