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.30 date: 2021/11/21 15:59:55
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.

copyright

COPYRIGHT (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.

Class protocol:

accessing
o  defaultNotifierString

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

o  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


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.

testing
o  isMessageNotUnderstood



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Tue, 10 Dec 2024 20:23:40 GMT