Error.st
author Jan Vrany <jan.vrany@labware.com>
Wed, 22 Mar 2023 13:57:18 +0000
branchjv
changeset 25445 1623217d2268
parent 19227 5e949760a4e8
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:
4466
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4444
diff changeset
     1
"
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4444
diff changeset
     2
 COPYRIGHT (c) 1999 by eXept Software AG
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4444
diff changeset
     3
              All Rights Reserved
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4444
diff changeset
     4
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4444
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: 4444
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: 4444
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: 4444
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: 4444
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: 4444
diff changeset
    10
 hereby transferred.
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4444
diff changeset
    11
"
6210
d7039e2ae776 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 4541
diff changeset
    12
"{ Package: 'stx:libbasic' }"
d7039e2ae776 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 4541
diff changeset
    13
19208
c2baf5093dcf comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
    14
"{ NameSpace: Smalltalk }"
c2baf5093dcf comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
    15
4444
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    16
Exception subclass:#Error
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:''
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
6210
d7039e2ae776 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 4541
diff changeset
    20
	category:'Kernel-Exceptions-Errors'
4444
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    21
!
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    22
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    23
!Error class methodsFor:'documentation'!
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    24
4466
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4444
diff changeset
    25
copyright
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4444
diff changeset
    26
"
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4444
diff changeset
    27
 COPYRIGHT (c) 1999 by eXept Software AG
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4444
diff changeset
    28
              All Rights Reserved
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4444
diff changeset
    29
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4444
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: 4444
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: 4444
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: 4444
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: 4444
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: 4444
diff changeset
    35
 hereby transferred.
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4444
diff changeset
    36
"
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4444
diff changeset
    37
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4444
diff changeset
    38
!
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4444
diff changeset
    39
4444
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    40
documentation
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    41
"
4516
925ed9e301d3 Fix doku; initialize.
Stefan Vogel <sv@exept.de>
parents: 4466
diff changeset
    42
    Error is the superclass and parent of all error exceptions in the system
4444
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    43
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    44
    [author:]
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    45
        Stefan Vogel
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    46
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    47
    [see also:]
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    48
        Signal
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    49
"
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    50
! !
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    51
4516
925ed9e301d3 Fix doku; initialize.
Stefan Vogel <sv@exept.de>
parents: 4466
diff changeset
    52
!Error class methodsFor:'initialization'!
925ed9e301d3 Fix doku; initialize.
Stefan Vogel <sv@exept.de>
parents: 4466
diff changeset
    53
925ed9e301d3 Fix doku; initialize.
Stefan Vogel <sv@exept.de>
parents: 4466
diff changeset
    54
initialize
925ed9e301d3 Fix doku; initialize.
Stefan Vogel <sv@exept.de>
parents: 4466
diff changeset
    55
    NotifierString := 'error encountered'.
925ed9e301d3 Fix doku; initialize.
Stefan Vogel <sv@exept.de>
parents: 4466
diff changeset
    56
13133
ebdaac05b6ed changed: #initialize
Claus Gittinger <cg@exept.de>
parents: 12089
diff changeset
    57
    "Created: / 04-08-1999 / 08:48:18 / stefan"
ebdaac05b6ed changed: #initialize
Claus Gittinger <cg@exept.de>
parents: 12089
diff changeset
    58
    "Modified: / 17-11-2010 / 17:53:07 / cg"
4516
925ed9e301d3 Fix doku; initialize.
Stefan Vogel <sv@exept.de>
parents: 4466
diff changeset
    59
! !
925ed9e301d3 Fix doku; initialize.
Stefan Vogel <sv@exept.de>
parents: 4466
diff changeset
    60
12089
0b9f77ad54a0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8486
diff changeset
    61
4444
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    62
!Error class methodsFor:'queries'!
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    63
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    64
mayProceed
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    65
    "By default, errors do not allow to proceed.
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    66
     Subclasses may change this"
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    67
8486
381dfb0749b6 comment
Stefan Vogel <sv@exept.de>
parents: 8065
diff changeset
    68
    ^ false
4444
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    69
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    70
    "Created: / 23.7.1999 / 14:52:26 / stefan"
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    71
    "Modified: / 23.7.1999 / 14:52:39 / stefan"
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    72
! !
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    73
8065
23355398af34 isOpenError, isStreamError and isError queries added
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    74
!Error methodsFor:'testing'!
23355398af34 isOpenError, isStreamError and isError queries added
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    75
23355398af34 isOpenError, isStreamError and isError queries added
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    76
isError
23355398af34 isOpenError, isStreamError and isError queries added
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    77
    ^ true
23355398af34 isOpenError, isStreamError and isError queries added
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    78
! !
23355398af34 isOpenError, isStreamError and isError queries added
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    79
4444
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    80
!Error class methodsFor:'documentation'!
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    81
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    82
version
19208
c2baf5093dcf comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
    83
    ^ '$Header$'
12089
0b9f77ad54a0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8486
diff changeset
    84
!
0b9f77ad54a0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8486
diff changeset
    85
0b9f77ad54a0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8486
diff changeset
    86
version_CVS
19208
c2baf5093dcf comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
    87
    ^ '$Header$'
4444
0709daf55558 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    88
! !
7586
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6210
diff changeset
    89
19208
c2baf5093dcf comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 13133
diff changeset
    90
4516
925ed9e301d3 Fix doku; initialize.
Stefan Vogel <sv@exept.de>
parents: 4466
diff changeset
    91
Error initialize!