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

1.193 SystemExceptions.WrongClass

Defined in namespace Smalltalk.SystemExceptions
Superclass: SystemExceptions.InvalidValue
Category: Language-Exceptions
I am raised when an argument is constrained to be an instance of a determinate class, and this constraint is not respected by the caller.

1.193.1 SystemExceptions.WrongClass class: signaling  (class)
1.193.2 SystemExceptions.WrongClass: accessing  (instance)


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


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



Back: SystemExceptions.WrongClass class-signaling Up: SystemExceptions.WrongClass Forward: SystemExceptions.WrongMessageSent   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