KeyNotFoundError.st
author Claus Gittinger <cg@exept.de>
Tue, 09 Jul 2019 20:55:17 +0200
changeset 24417 03b083548da2
parent 22916 ecf1255014d0
permissions -rw-r--r--
#REFACTORING by exept class: Smalltalk class changed: #recursiveInstallAutoloadedClassesFrom:rememberIn:maxLevels:noAutoload:packageTop:showSplashInLevels: Transcript showCR:(... bindWith:...) -> Transcript showCR:... with:...
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
22916
ecf1255014d0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17684
diff changeset
     1
"{ Encoding: utf8 }"
ecf1255014d0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17684
diff changeset
     2
8329
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     3
"
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     4
 COPYRIGHT (c) 2001 by eXept Software AG
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     5
              All Rights Reserved
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     6
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     7
 This software is furnished under a license and may be used
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     8
 only in accordance with the terms of that license and with the
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    10
 be provided or otherwise made available to, or used by, any
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    11
 other person.  No title to or ownership of the software is
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    12
 hereby transferred.
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    13
"
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    14
"{ Package: 'stx:libbasic' }"
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    15
17684
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    16
"{ NameSpace: Smalltalk }"
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    17
8329
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    18
NotFoundError subclass:#KeyNotFoundError
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    19
	instanceVariableNames:''
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    20
	classVariableNames:''
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    21
	poolDictionaries:''
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    22
	category:'Kernel-Exceptions-Errors'
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    23
!
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    24
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    25
!KeyNotFoundError class methodsFor:'documentation'!
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    26
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    27
copyright
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    28
"
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    29
 COPYRIGHT (c) 2001 by eXept Software AG
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    30
              All Rights Reserved
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    31
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    32
 This software is furnished under a license and may be used
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    33
 only in accordance with the terms of that license and with the
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    35
 be provided or otherwise made available to, or used by, any
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    36
 other person.  No title to or ownership of the software is
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    37
 hereby transferred.
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    38
"
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    39
!
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    40
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    41
documentation
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    42
"
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    43
    raised when a key was not found in a collection.
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    44
"
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    45
! !
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    46
15184
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    47
!KeyNotFoundError class methodsFor:'initialization'!
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    48
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    49
initialize
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    50
    NotifierString := 'no such key: '.
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    51
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    52
    "
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    53
     self initialize
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    54
    "
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    55
! !
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    56
22916
ecf1255014d0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17684
diff changeset
    57
!KeyNotFoundError methodsFor:'Compatibility-Squeak'!
ecf1255014d0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17684
diff changeset
    58
ecf1255014d0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17684
diff changeset
    59
key:theBadKey
ecf1255014d0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17684
diff changeset
    60
    "the index, which was not found"
ecf1255014d0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17684
diff changeset
    61
ecf1255014d0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17684
diff changeset
    62
    parameter := theBadKey
ecf1255014d0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17684
diff changeset
    63
! !
ecf1255014d0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17684
diff changeset
    64
17684
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    65
!KeyNotFoundError methodsFor:'accessing'!
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    66
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    67
index
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    68
    "the index, which was not found"
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    69
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    70
    ^ parameter
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    71
! !
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    72
8329
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    73
!KeyNotFoundError class methodsFor:'documentation'!
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    74
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    75
version
22916
ecf1255014d0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17684
diff changeset
    76
    ^ '$Header$'
8329
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    77
! !
15184
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    78
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    79
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    80
KeyNotFoundError initialize!