AmbiguousMessage.st
author Jan Vrany <jan.vrany@labware.com>
Mon, 29 Nov 2021 23:00:04 +0000
branchjv
changeset 25437 622824e701ea
parent 23547 c69c97cec351
permissions -rw-r--r--
Fix `ObjectMemory >> #nameForSnapshot` ...to actually do what the comment says: return current image name (if any).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
     1
"
13480
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
     2
 COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
23107
40173e082cbc Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 20578
diff changeset
     3
 COPYRIGHT (c) 2010 Jan Vrany
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
     4
              All Rights Reserved
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
     5
13480
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
     6
Permission is hereby granted, free of charge, to any person
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
     7
obtaining a copy of this software and associated documentation
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
     8
files (the 'Software'), to deal in the Software without
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
     9
restriction, including without limitation the rights to use,
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    10
copy, modify, merge, publish, distribute, sublicense, and/or sell
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    11
copies of the Software, and to permit persons to whom the
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    12
Software is furnished to do so, subject to the following
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    13
conditions:
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    14
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    15
The above copyright notice and this permission notice shall be
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    16
included in all copies or substantial portions of the Software.
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    17
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    18
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    19
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    20
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    21
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    22
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    23
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    24
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    25
OTHER DEALINGS IN THE SOFTWARE.
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    26
"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    27
"{ Package: 'stx:libbasic' }"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    28
20442
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
    29
"{ NameSpace: Smalltalk }"
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
    30
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
    31
ExecutionError subclass:#AmbiguousMessage
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    32
	instanceVariableNames:''
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    33
	classVariableNames:''
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    34
	poolDictionaries:''
15888
d30fac9218be class: AmbiguousMessage
Claus Gittinger <cg@exept.de>
parents: 14876
diff changeset
    35
	category:'Kernel-Exceptions-ExecutionErrors'
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    36
!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    37
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    38
!AmbiguousMessage class methodsFor:'documentation'!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    39
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    40
copyright
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    41
"
13480
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    42
 COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
23107
40173e082cbc Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 20578
diff changeset
    43
 COPYRIGHT (c) 2010 Jan Vrany
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    44
              All Rights Reserved
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    45
13480
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    46
Permission is hereby granted, free of charge, to any person
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    47
obtaining a copy of this software and associated documentation
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    48
files (the 'Software'), to deal in the Software without
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    49
restriction, including without limitation the rights to use,
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    50
copy, modify, merge, publish, distribute, sublicense, and/or sell
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    51
copies of the Software, and to permit persons to whom the
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    52
Software is furnished to do so, subject to the following
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    53
conditions:
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    54
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    55
The above copyright notice and this permission notice shall be
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    56
included in all copies or substantial portions of the Software.
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    57
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    58
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    59
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    60
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    61
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    62
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    63
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    64
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    65
OTHER DEALINGS IN THE SOFTWARE.
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    66
"
14876
4074951f9879 class: AmbiguousMessage
Claus Gittinger <cg@exept.de>
parents: 13480
diff changeset
    67
!
4074951f9879 class: AmbiguousMessage
Claus Gittinger <cg@exept.de>
parents: 13480
diff changeset
    68
4074951f9879 class: AmbiguousMessage
Claus Gittinger <cg@exept.de>
parents: 13480
diff changeset
    69
documentation
4074951f9879 class: AmbiguousMessage
Claus Gittinger <cg@exept.de>
parents: 13480
diff changeset
    70
"
4074951f9879 class: AmbiguousMessage
Claus Gittinger <cg@exept.de>
parents: 13480
diff changeset
    71
    raised by the VM when a message is sent to an object and 
4074951f9879 class: AmbiguousMessage
Claus Gittinger <cg@exept.de>
parents: 13480
diff changeset
    72
    is not clear which method to execute.
4074951f9879 class: AmbiguousMessage
Claus Gittinger <cg@exept.de>
parents: 13480
diff changeset
    73
    Such situation may occur when a current selector namespace
4074951f9879 class: AmbiguousMessage
Claus Gittinger <cg@exept.de>
parents: 13480
diff changeset
    74
    imports two namespaces and both define a method with the
4074951f9879 class: AmbiguousMessage
Claus Gittinger <cg@exept.de>
parents: 13480
diff changeset
    75
    requested selector.
4074951f9879 class: AmbiguousMessage
Claus Gittinger <cg@exept.de>
parents: 13480
diff changeset
    76
"
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    77
! !
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    78
20442
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
    79
!AmbiguousMessage class methodsFor:'testing'!
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
    80
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
    81
isProgramError
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
    82
    "redefined in all exceptions which are programmer's errors,
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
    83
     and which should probably not be ignored.
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
    84
     I.e. a global error handler should reject and let a debugger get control."
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
    85
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
    86
    ^ true
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
    87
! !
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
    88
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    89
!AmbiguousMessage class methodsFor:'documentation'!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    90
13480
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    91
version_CVS
20442
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
    92
    ^ '$Header$'
13480
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    93
!
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    94
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    95
version_SVN
20442
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
    96
    ^ '$Id$'
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    97
! !
14876
4074951f9879 class: AmbiguousMessage
Claus Gittinger <cg@exept.de>
parents: 13480
diff changeset
    98