Category: Language-Exceptions
Superclass: SystemExceptions.InvalidValue
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.

Method category index

signaling (class)
accessing (instance)

signaling (class)

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.

top


accessing (instance)

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.

top