ProceedError.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 10 Jun 2015 08:43:00 +0100
branchjv
changeset 18482 68a43e2b3e78
parent 18050 131d0413b25b
child 21024 8734987eb5c7
permissions -rw-r--r--
Merge
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
4528
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    14
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
    15
    instanceVariableNames: ''
131d0413b25b Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17911 15111
diff changeset
    16
    classVariableNames: ''
131d0413b25b Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17911 15111
diff changeset
    17
    poolDictionaries: ''
131d0413b25b Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17911 15111
diff changeset
    18
    category: 'Kernel-Exceptions-Errors'
4528
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    19
!
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    20
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    21
!ProceedError class methodsFor:'documentation'!
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    22
4554
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    23
copyright
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    24
"
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    25
 COPYRIGHT (c) 1999 by eXept Software AG
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    26
              All Rights Reserved
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    27
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    28
 This software is furnished under a license and may be used
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    29
 only in accordance with the terms of that license and with the
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    31
 be provided or otherwise made available to, or used by, any
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    32
 other person.  No title to or ownership of the software is
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    33
 hereby transferred.
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    34
"
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    35
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
4528
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    39
documentation
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    40
"
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    41
    ProceedError is raised to indicate that a handler tried to
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    42
    proceed an exception marked as nonproceedable.
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    43
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    44
    The parameter is the exception which tried to proceed.
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    45
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    46
    NOTE: In the past ST/X didn't distinguish between proceedable
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    47
          and non-proceedable exceptions. To make transistion easier,
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    48
          this exception is a warning for now. In a future release of
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    49
          ST/X, this exception will be changed to be an error 
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    50
          (child of SignalError).
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    51
          Please fix your code.
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    52
"
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    53
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    54
! !
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    55
18050
131d0413b25b Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17911 15111
diff changeset
    56
4528
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    57
!ProceedError class methodsFor:'initialization'!
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    58
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    59
initialize
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    60
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    61
    NotifierString := 'handler tried to proceed from nonproceedable exception'.
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    62
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    63
    "
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    64
     self initialize
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    65
    "
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    66
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
18050
131d0413b25b Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17911 15111
diff changeset
    70
4534
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    71
!ProceedError methodsFor:'default actions'!
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    72
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    73
defaultAction
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    74
    "make proceeding from a non-proceedable raise a warning for now.
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    75
     This will change in future revisions"
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    76
15111
017507dff46c class: ProceedError
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    77
    ('WARNING: signal <', parameter creator printString, '> has been raised nonproceedable') errorPrintCR.
4534
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    78
    ('         by: ', parameter suspendedContext printString) errorPrintCR.
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    79
    ('         ', suspendedContext printString , ' tries to proceed.') errorPrintCR.
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    80
    ('         This will be an error in future ST/X versions.') errorPrintCR.
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    81
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    82
    self proceedWith:nil.
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    83
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    84
    "
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    85
      Object errorSignal handle:[:ex|
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    86
         ex proceedWith:nil
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    87
      ] do:[
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    88
         Object errorSignal raise
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    89
      ].
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
      Object errorSignal handle:[:ex|
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    92
         ex proceed
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    93
      ] do:[
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    94
         Object errorSignal raise
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    95
      ].
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
18050
131d0413b25b Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17911 15111
diff changeset
    99
4528
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   100
!ProceedError class methodsFor:'documentation'!
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   101
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   102
version
15111
017507dff46c class: ProceedError
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
   103
    ^ '$Header: /cvs/stx/stx/libbasic/ProceedError.st,v 1.6 2013-04-19 08:40:03 cg Exp $'
17761
b0e5971141bc Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   104
!
b0e5971141bc Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   105
b0e5971141bc Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   106
version_SVN
17911
a99f15c5efa5 Updated with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17910
diff changeset
   107
    ^ '$Id: ProceedError.st 10761 2012-01-19 11:46:00Z vranyj1 $'
4528
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   108
! !
7586
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6210
diff changeset
   109
15111
017507dff46c class: ProceedError
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
   110
4528
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   111
ProceedError initialize!