ProceedError.st
author Claus Gittinger <cg@exept.de>
Fri, 09 Nov 2001 16:18:46 +0100
changeset 6172 a3c88ea5efe9
parent 4554 db264efac2c0
child 6210 d7039e2ae776
permissions -rw-r--r--
comment and iso8601 (time/date formats) fixes
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
"
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    12
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    13
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    14
4528
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    15
Warning subclass:#ProceedError
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    16
	instanceVariableNames:''
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    17
	classVariableNames:''
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    18
	poolDictionaries:''
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    19
	category:'Kernel-Exceptions'
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    20
!
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    21
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    22
!ProceedError class methodsFor:'documentation'!
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    23
4554
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    24
copyright
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    25
"
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    26
 COPYRIGHT (c) 1999 by eXept Software AG
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    27
              All Rights Reserved
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    28
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    29
 This software is furnished under a license and may be used
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    30
 only in accordance with the terms of that license and with the
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    31
 inclusion of the above copyright notice.   This software may not
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    32
 be provided or otherwise made available to, or used by, any
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    33
 other person.  No title to or ownership of the software is
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    34
 hereby transferred.
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
!
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
    39
4528
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    40
documentation
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    41
"
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    42
    ProceedError is raised to indicate that a handler tried to
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    43
    proceed an exception marked as nonproceedable.
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    44
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    45
    The parameter is the exception which tried to proceed.
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    46
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    47
    NOTE: In the past ST/X didn't distinguish between proceedable
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    48
          and non-proceedable exceptions. To make transistion easier,
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    49
          this exception is a warning for now. In a future release of
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    50
          ST/X, this exception will be changed to be an error 
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    51
          (child of SignalError).
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    52
          Please fix your code.
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
! !
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    56
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
4534
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    70
!ProceedError methodsFor:'default actions'!
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    71
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    72
defaultAction
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    73
    "make proceeding from a non-proceedable raise a warning for now.
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    74
     This will change in future revisions"
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    75
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    76
    ('WARNING: signal <', parameter signal printString, '> has been raised nonproceedable') errorPrintCR.
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    77
    ('         by: ', parameter suspendedContext printString) errorPrintCR.
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    78
    ('         ', suspendedContext printString , ' tries to proceed.') errorPrintCR.
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    79
    ('         This will be an error in future ST/X versions.') errorPrintCR.
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    80
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    81
    self proceedWith:nil.
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    82
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
      Object errorSignal handle:[:ex|
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    85
         ex proceedWith:nil
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    86
      ] do:[
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    87
         Object errorSignal raise
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
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    90
      Object errorSignal handle:[:ex|
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    91
         ex proceed
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    92
      ] do:[
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    93
         Object errorSignal raise
648cf88a45db Add defaultAction
Stefan Vogel <sv@exept.de>
parents: 4528
diff changeset
    94
      ].
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
4528
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    98
!ProceedError class methodsFor:'documentation'!
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    99
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   100
version
4554
db264efac2c0 Add copyright.
Stefan Vogel <sv@exept.de>
parents: 4534
diff changeset
   101
    ^ '$Header: /cvs/stx/stx/libbasic/ProceedError.st,v 1.3 1999-08-04 16:58:00 stefan Exp $'
4528
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   102
! !
5ef0de6abb50 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   103
ProceedError initialize!