|
Class: MessageNotUnderstood
Object
|
+--GenericException
|
+--Exception
|
+--Error
|
+--ProceedableError
|
+--ExecutionError
|
+--MessageNotUnderstood
- Package:
- stx:libbasic
- Category:
- Kernel-Exceptions-Errors
- Version:
- rev:
1.30
date: 2021/11/21 15:59:55
- user: cg
- file: MessageNotUnderstood.st directory: libbasic
- module: stx stc-classLibrary: libbasic
raised when a message is sent to an object, which is not understood
by the receiver, and the message was not handled by a class specific
doesNotUnderstand: handler.
copyrightCOPYRIGHT (c) 2001 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
accessing
-
defaultNotifierString
-
save evaluation
-
ignoreNotUnderstoodOf: aSelector in: aBlock
-
evaluate aBlock; if a messageNotUnderstood occurs,
for which the message was aSelector, ignore the error
and return nil.
Other selector errors lead into the debugger.
If no error occurs, return the block's value
-
ignoreNotUnderstoodOfAny: aCollectionOfSelectors in: aBlock
-
evaluate aBlock; if a messageNotUnderstood occurs,
for which the message was any in aCollectionOfSelectors, ignore the error
and return nil.
Other selector errors lead into the debugger.
If no error occurs, return the block's value
accessing
-
message
-
[
123 perform:#foo
] on:MessageNotUnderstood do:[:ex |
Transcript show:'message object: '; showCR:ex message storeString.
Transcript show:'receiver: '; showCR:ex receiver storeString.
Transcript show:'selector: '; showCR:ex message selector storeString.
Transcript show:'arguments: '; showCR:ex message arguments storeString.
]
-
receiver
-
[
123 perform:#foo
] on:MessageNotUnderstood do:[:ex |
Transcript showCR:ex receiver
]
-
selector
-
[
123 perform:#foo
] on:MessageNotUnderstood do:[:ex |
Transcript show:'selector: '; showCR:ex selector storeString.
]
printing & storing
-
description
-
the human readable description of the exception
Usage example(s):
description := sel, ' not understood by ' , description.
|
Usage example(s):
description := sel printString, ' (nonSymbol) not understood by ' , description.
|
testing
-
isMessageNotUnderstood
-
|