Back: SystemExceptions.WrongClass-accessing Up: Base classes Forward: SystemExceptions.WrongMessageSent class-signaling   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.194 SystemExceptions.WrongMessageSent

Defined in namespace Smalltalk.SystemExceptions
Superclass: SystemExceptions.ShouldNotImplement
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

1.194.1 SystemExceptions.WrongMessageSent class: signaling  (class)
1.194.2 SystemExceptions.WrongMessageSent: accessing  (instance)


1.194.1 SystemExceptions.WrongMessageSent class: signaling

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


1.194.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.



Back: SystemExceptions.WrongMessageSent class-signaling Up: SystemExceptions.WrongMessageSent Forward: TextCollector   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on July, 23 2009 using texi2html