KeyNotFoundError.st
author Jan Vrany <jan.vrany@labware.com>
Sat, 29 Oct 2022 01:05:05 +0100
branchjv
changeset 25446 98fb817db6de
parent 18120 e3a375d5f6a8
permissions -rw-r--r--
Add `Character >> isMathLetter` and `#isMathBinaryOperator`
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8329
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     1
"
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 2001 by eXept Software AG
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     4
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    10
 hereby transferred.
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    11
"
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libbasic' }"
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    13
17684
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    14
"{ NameSpace: Smalltalk }"
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    15
8329
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    16
NotFoundError subclass:#KeyNotFoundError
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:''
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    20
	category:'Kernel-Exceptions-Errors'
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    21
!
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    22
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    23
!KeyNotFoundError class methodsFor:'documentation'!
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    24
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    25
copyright
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 (c) 2001 by eXept Software AG
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    28
              All Rights Reserved
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    29
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    30
 This software is furnished under a license and may be used
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    31
 only in accordance with the terms of that license and with the
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    33
 be provided or otherwise made available to, or used by, any
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    34
 other person.  No title to or ownership of the software is
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    35
 hereby transferred.
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    36
"
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    37
!
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    38
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    39
documentation
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    40
"
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    41
    raised when a key was not found in a collection.
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    42
"
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    43
! !
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    44
15184
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    45
!KeyNotFoundError class methodsFor:'initialization'!
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    46
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    47
initialize
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    48
    NotifierString := 'no such key: '.
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    49
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    50
    "
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    51
     self initialize
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
! !
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    54
17684
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    55
!KeyNotFoundError methodsFor:'accessing'!
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    56
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    57
index
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    58
    "the index, which was not found"
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    59
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    60
    ^ parameter
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    61
! !
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    62
8329
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    63
!KeyNotFoundError class methodsFor:'documentation'!
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    64
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    65
version
17684
feb6c78d835d class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 15184
diff changeset
    66
    ^ '$Header: /cvs/stx/stx/libbasic/KeyNotFoundError.st,v 1.3 2015-03-26 13:21:27 cg Exp $'
8329
1828c8969866 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    67
! !
15184
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    68
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    69
76b13ec3f09e class: KeyNotFoundError
Claus Gittinger <cg@exept.de>
parents: 8329
diff changeset
    70
KeyNotFoundError initialize!