Back: SystemExceptions WrongClass-accessing
Up: Class reference
Forward: SystemExceptions WrongMessageSent class-signaling
 
Top: GNU Smalltalk User's Guide
Contents: Table of Contents
Index: Class index
About: About this document

6.163 SystemExceptions WrongMessageSent

Defined in namespace Smalltalk SystemExceptions
Category: Language-Exceptions
I am raised when a method is called that a class wishes that is not called. This exception also includes a suggestion on which message should be sent instead

6.163.1 SystemExceptions WrongMessageSent class: signaling  (class)
6.163.2 SystemExceptions WrongMessageSent: accessing  (instance)


6.163.1 SystemExceptions WrongMessageSent class: signaling

signalOn: selector useInstead: aSymbol
Raise an exception, signaling which selector was sent and suggesting a valid alternative.


6.163.2 SystemExceptions WrongMessageSent: accessing

messageText
Answer an exception's message text.

selector
Answer which selector was sent.

selector: aSymbol
Set which selector was sent.

suggestedSelector
Answer a valid alternative to the selector that was used.

suggestedSelector: aSymbol
Set a valid alternative to the selector that was used.




This document was generated on May, 12 2002 using texi2html