|
Class: MessageNotUnderstood
Object
|
+--GenericException
|
+--Exception
|
+--Error
|
+--ProceedableError
|
+--ExecutionError
|
+--MessageNotUnderstood
- Package:
- stx:libbasic
- Category:
- Kernel-Exceptions-Errors
- Version:
- rev:
1.24
date: 2019/05/08 01:11:14
- 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.
initialization
-
initialize
-
self initialize
save evaluation
-
ignoreNotUnderstoodOf: aSelector in: aBlock
-
evaluate aBlock; if a messageNotUnderstood occurs,
for which the message was aSelector, ignore the error
and return.
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.
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.
|
|