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

6.162 SystemExceptions WrongClass

Defined in namespace Smalltalk SystemExceptions
Category: Language-Exceptions

6.162.1 SystemExceptions WrongClass class: signaling  (class)
6.162.2 SystemExceptions WrongClass: accessing  (instance)


6.162.1 SystemExceptions WrongClass class: signaling

signalOn: anObject mustBe: aClassOrArray
Raise an exception. The given object should have been an instance of one of the classes indicated by aClassOrArray (which should be a single class or an array of classes). Whether instances of subclasses are allowed should be clear from the context, though in general (i.e. with the exception of a few system messages) they should be.


6.162.2 SystemExceptions WrongClass: accessing

description
Answer a textual description of the exception.

messageText
Answer an exception's message text.

validClasses
Answer the list of classes whose instances would have been valid.

validClasses: aCollection
Set the list of classes whose instances would have been valid.

validClassesString
Answer the list of classes whose instances would have been valid, formatted as a string.




This document was generated on May, 12 2002 using texi2html