|
|
6.162 SystemExceptions WrongClass
- Defined in namespace Smalltalk SystemExceptions
- Category: Language-Exceptions
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.
|