AmbiguousMessage.st
author Claus Gittinger <cg@exept.de>
Tue, 09 Jul 2019 20:55:17 +0200
changeset 24417 03b083548da2
parent 20442 5e97637a82d9
child 20578 39641ba8d6e0
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:
20442
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
     1
"{ Encoding: utf8 }"
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
     2
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
     3
"
13480
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
     4
 COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
     5
              All Rights Reserved
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
     6
13480
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
     7
Permission is hereby granted, free of charge, to any person
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
     8
obtaining a copy of this software and associated documentation
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
     9
files (the 'Software'), to deal in the Software without
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    10
restriction, including without limitation the rights to use,
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    11
copy, modify, merge, publish, distribute, sublicense, and/or sell
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    12
copies of the Software, and to permit persons to whom the
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    13
Software is furnished to do so, subject to the following
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    14
conditions:
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    15
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    16
The above copyright notice and this permission notice shall be
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    17
included in all copies or substantial portions of the Software.
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    18
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    19
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    20
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    21
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    22
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    23
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    24
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    25
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
    26
OTHER DEALINGS IN THE SOFTWARE.
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    27
"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    28
"{ Package: 'stx:libbasic' }"
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    29
20442
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
    30
"{ NameSpace: Smalltalk }"
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
    31
5e97637a82d9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 15888
diff changeset
    32
ExecutionError subclass:#AmbiguousMessage
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    33
	instanceVariableNames:''
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    34
	classVariableNames:''
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    35
	poolDictionaries:''
15888
d30fac9218be class: AmbiguousMessage
Claus Gittinger <cg@exept.de>
parents: 14876
diff changeset
    36
	category:'Kernel-Exceptions-ExecutionErrors'
13403
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    37
!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    38
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    39
!AmbiguousMessage class methodsFor:'documentation'!
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    40
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    41
copyright
9cdd42752750 added AmbiguousMessage, Annotation, NamespaceAwareLookup
vrany
parents:
diff changeset
    42
"
13480
27c57fc46853 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 13403
diff changeset
    43
 COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
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