eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'UnhandledAttributeInLiteralArrayErrorSignal':

Home

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

Class: UnhandledAttributeInLiteralArrayErrorSignal


Inheritance:

   Object
   |
   +--GenericException
      |
      +--Notification
         |
         +--UnhandledAttributeInLiteralArrayErrorSignal

Package:
stx:libbasic
Category:
Kernel-Exceptions-Errors
Version:
rev: 1.6 date: 2021/11/21 15:59:10
user: cg
file: UnhandledAttributeInLiteralArrayErrorSignal.st directory: libbasic
module: stx stc-classLibrary: libbasic

Description:


notifying when decoding a literal array spec,
when a non-existing attribute is encountered.
i.e. a spec-element of the form 
    (Foo attribute: x),
where atribute is unknown to the Foo class (at cannot decode that)

(used to be an errorPrint in basicFromLiteralArrayEncoding).

    |spec1 spec2|

    UnhandledAttributeInLiteralArrayErrorSignal handle:[:ex |
        Transcript showCR:ex description
    ] do:[
        spec1 := #(#UISpecification #activeHelpKey: #foo) decodeAsLiteralArray.
        spec2 := #(#UISpecification #blabla: #foo) decodeAsLiteralArray.
    ].
    Transcript showCR:spec1.
    Transcript showCR:spec2.


copyright

COPYRIGHT (c) 2016 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
self handle:[:ex |
Transcript showCR:ex
] do:[
self raiseWith:'bla'
].


Instance protocol:

accessing
o  badLiteralArray
the literal array containing the unhandled attribute

o  badLiteralArray: something

o  unhandledAttribute
the unhandled attribute

printing & storing
o  description
(comment from inherited method)
return the description string of the signal/exception.
If a messageText has been set, that is returned,
appended or prepended to the classes description string.
MessageText can be a computed value or anything which converts to a string



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Thu, 21 Nov 2024 18:54:29 GMT