eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'MessageNotUnderstood':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: MessageNotUnderstood


Inheritance:

   Object
   |
   +--GenericException
      |
      +--Exception
         |
         +--Error
            |
            +--ProceedableError
               |
               +--ExecutionError
                  |
                  +--MessageNotUnderstood

Package:
stx:libbasic
Category:
Kernel-Exceptions-Errors
Version:
rev: 1.18 date: 2018/02/01 11:30:05
user: cg
file: MessageNotUnderstood.st directory: libbasic
module: stx stc-classLibrary: libbasic

Description:


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.


Class protocol:

initialization
o  initialize
self initialize

save evaluation
o  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 blocks value

o  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 blocks value


Instance protocol:

accessing
o  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.
]

o  receiver
[
123 perform:#foo
] on:MessageNotUnderstood do:[:ex |
Transcript showCR:ex receiver
]

o  selector
[
123 perform:#foo
] on:MessageNotUnderstood do:[:ex |
Transcript show:'selector: '; showCR:ex selector storeString.
]

printing & storing
o  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.



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Thu, 19 Jul 2018 06:11:41 GMT