ProceedError.st
author Jan Vrany <jan.vrany@labware.com>
Wed, 22 Mar 2023 13:57:18 +0000
branchjv
changeset 25445 1623217d2268
parent 21024 8734987eb5c7
permissions -rw-r--r--
Cherry-picked OrderedCollection.st from 0b286fd51da7: * d4c86d7c0bfc: #TUNING by stefan, Stefan Vogel <sv@exept.de> * 692b6497a669: #DOCUMENTATION by stefan, Stefan Vogel <sv@exept.de> * d47bb2912953: #DOCUMENTATION by stefan, Stefan Vogel <sv@exept.de> * abb4316c6bff: #FEATURE by cg, Claus Gittinger <cg@exept.de> * 3a8fce0e8d11: #TUNING by stefan, Stefan Vogel <sv@exept.de> * 03d29bf8c5bb: #REFACTORING by stefan, Stefan Vogel <sv@exept.de> * cccc6c4abcfc: #REFACTORING by stefan, Stefan Vogel <sv@exept.de> * 35d957c7a840: #FEATURE by cg, Claus Gittinger <cg@exept.de> * 6b11890f5f2c: #OTHER by cg, Claus Gittinger <cg@exept.de> * abb6108fb06b: #FEATURE by cg, Claus Gittinger <cg@exept.de> * 2c4768bb2e89: #FEATURE by cg, Claus Gittinger <cg@exept.de> * 4029e964d0f1: #FEATURE by cg, Claus Gittinger <cg@exept.de> * ddcab3a9c2df: #OTHER by cg, Claus Gittinger <cg@exept.de> * 2213eb56e0c7: #REFACTORING by exept, Claus Gittinger <cg@exept.de> * 09ca874a6160: #REFACTORING by exept, Claus Gittinger <cg@exept.de> * 30b332af1f33: #BUGFIX by stefan, Stefan Vogel <sv@exept.de> * 779764ba117b: #REFACTORING by cg, Claus Gittinger <cg@exept.de> * b3d232a613c9: #BUGFIX by stefan, Stefan Vogel <sv@exept.de> * c417f7edaec1: #BUGFIX by stefan, Stefan Vogel <sv@exept.de> * 904b6538f379: #FEATURE by exept, Claus Gittinger <cg@exept.de> * c5887f03e01f: #REFACTORING by stefan, Stefan Vogel <sv@exept.de> * 8912d03aff48: #BUGFIX by exept, Claus Gittinger <cg@exept.de> * de5cd1dab4c3: #DOCUMENTATION by exept, Claus Gittinger <cg@exept.de> * 9bbd26603378: #OTHER by exept, Claus Gittinger <cg@exept.de> * c2c9dc110f42: #FEATURE by stefan, Stefan Vogel <sv@exept.de> * 81d123c6703d: #DOCUMENTATION by stefan, Stefan Vogel <sv@exept.de> * 8aadbb21458a: #BUGFIX by stefan, Stefan Vogel <sv@exept.de> * f210dbb8b2f6: #TUNING by stefan, Stefan Vogel <sv@exept.de> * c2c774fc53c0: #FEATURE by exept, Claus Gittinger <cg@exept.de> * b6f462670875: #DOCUMENTATION by exept, Claus Gittinger <cg@exept.de> * 27ae4021d5d6: #FEATURE by stefan, Stefan Vogel <sv@exept.de> * 10d9e9d85594: #TUNING by exept, Claus Gittinger <cg@exept.de> * 2653d855dcc7: #DOCUMENTATION by exept, Claus Gittinger <cg@exept.de> * 6ea1698a1a34: #FEATURE by stefan, Stefan Vogel <sv@exept.de> * 28762315e664: #OTHER by exept, Claus Gittinger <cg@exept.de> * 7142ea786f3e: #TUNING by stefan, Stefan Vogel <sv@exept.de> * 7875acb42b53: #BUGFIX by stefan, Stefan Vogel <sv@exept.de> * 163a0eebc97e: #BUGFIX by Maren, matilk
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4554
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
     1
"
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
     2
 COPYRIGHT (c) 1999 by eXept Software AG
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
     3
              All Rights Reserved
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
     4
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
     5
 This software is furnished under a license and may be used
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
     6
 only in accordance with the terms of that license and with the
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
     8
 be provided or otherwise made available to, or used by, any
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
     9
 other person.  No title to or ownership of the software is
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    10
 hereby transferred.
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    11
"
6210
d7039e2ae776 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 4554
diff changeset
    12
"{ Package: 'stx:libbasic' }"
d7039e2ae776 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 4554
diff changeset
    13
20962
54b9f03e5aba #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 15111
diff changeset
    14
"{ NameSpace: Smalltalk }"
54b9f03e5aba #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 15111
diff changeset
    15
4528
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    16
Warning subclass:#ProceedError
18050
131d0413b25b Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17911 15111
diff changeset
    17
    instanceVariableNames: ''
131d0413b25b Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17911 15111
diff changeset
    18
    classVariableNames: ''
131d0413b25b Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17911 15111
diff changeset
    19
    poolDictionaries: ''
131d0413b25b Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17911 15111
diff changeset
    20
    category: 'Kernel-Exceptions-Errors'
4528
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    21
!
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    22
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    23
!ProceedError class methodsFor:'documentation'!
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    24
4554
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    25
copyright
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    26
"
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    27
 COPYRIGHT (c) 1999 by eXept Software AG
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    28
              All Rights Reserved
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    29
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    30
 This software is furnished under a license and may be used
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    31
 only in accordance with the terms of that license and with the
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    33
 be provided or otherwise made available to, or used by, any
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    34
 other person.  No title to or ownership of the software is
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    35
 hereby transferred.
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    36
"
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    37
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    38
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    39
!
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    40
4528
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    41
documentation
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    42
"
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    43
    ProceedError is raised to indicate that a handler tried to
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    44
    proceed an exception marked as nonproceedable.
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    45
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    46
    The parameter is the exception which tried to proceed.
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    47
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    48
    NOTE: In the past ST/X didn't distinguish between proceedable
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    49
          and non-proceedable exceptions. To make transistion easier,
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    50
          this exception is a warning for now. In a future release of
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    51
          ST/X, this exception will be changed to be an error 
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    52
          (child of SignalError).
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    53
          Please fix your code.
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    54
"
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    55
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    56
! !
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    57
18050
131d0413b25b Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17911 15111
diff changeset
    58
4528
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    59
!ProceedError class methodsFor:'initialization'!
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    60
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    61
initialize
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    62
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    63
    NotifierString := 'handler tried to proceed from nonproceedable exception'.
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    64
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    65
    "
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    66
     self initialize
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    67
    "
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    68
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    69
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    70
! !
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    71
18050
131d0413b25b Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17911 15111
diff changeset
    72
4534
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    73
!ProceedError methodsFor:'default actions'!
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    74
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    75
defaultAction
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    76
    "make proceeding from a non-proceedable raise a warning for now.
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    77
     This will change in future revisions"
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    78
15111
017507dff46c class: ProceedError
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    79
    ('WARNING: signal <', parameter creator printString, '> has been raised nonproceedable') errorPrintCR.
4534
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    80
    ('         by: ', parameter suspendedContext printString) errorPrintCR.
20962
54b9f03e5aba #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 15111
diff changeset
    81
    ('           : ', parameter suspendedContext sender printString) errorPrintCR.
54b9f03e5aba #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 15111
diff changeset
    82
    ('           : ', parameter suspendedContext sender sender printString) errorPrintCR.
4534
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    83
    ('         ', suspendedContext printString , ' tries to proceed.') errorPrintCR.
20962
54b9f03e5aba #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 15111
diff changeset
    84
    ('         in: ', thisContext sender printString) errorPrintCR.
54b9f03e5aba #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 15111
diff changeset
    85
    ('           : ', thisContext sender sender printString) errorPrintCR.
54b9f03e5aba #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 15111
diff changeset
    86
    ('           : ', thisContext sender sender sender printString) errorPrintCR.
54b9f03e5aba #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 15111
diff changeset
    87
    ('         This may be an error in future ST/X versions.') errorPrintCR.
4534
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    88
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    89
    self proceedWith:nil.
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    90
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    91
    "
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    92
      Object errorSignal handle:[:ex|
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    93
         ex proceedWith:nil
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    94
      ] do:[
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    95
         Object errorSignal raise
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    96
      ].
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    97
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    98
      Object errorSignal handle:[:ex|
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    99
         ex proceed
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
   100
      ] do:[
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
   101
         Object errorSignal raise
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
   102
      ].
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
   103
   "
20962
54b9f03e5aba #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 15111
diff changeset
   104
54b9f03e5aba #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 15111
diff changeset
   105
    "Modified: / 13-11-2016 / 10:52:37 / cg"
4534
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
   106
! !
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
   107
18050
131d0413b25b Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17911 15111
diff changeset
   108
4528
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   109
!ProceedError class methodsFor:'documentation'!
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   110
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   111
version
20962
54b9f03e5aba #QUALITY by cg
Claus Gittinger <cg@exept.de>
parents: 15111
diff changeset
   112
    ^ '$Header$'
17761
b0e5971141bc Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   113
!
b0e5971141bc Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   114
b0e5971141bc Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   115
version_SVN
17911
a99f15c5efa5 Updated with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17910
diff changeset
   116
    ^ '$Id: ProceedError.st 10761 2012-01-19 11:46:00Z vranyj1 $'
4528
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   117
! !
7586
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6210
diff changeset
   118
15111
017507dff46c class: ProceedError
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
   119
4528
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   120
ProceedError initialize!