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.24 date: 2019/05/08 01:11:14
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 block's 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 block's 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.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sat, 20 Apr 2024 03:46:18 GMT