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.2 date: 2016/05/12 15:45:59
user: cg
file: UnhandledAttributeInLiteralArrayErrorSignal.st directory: libbasic
module: stx stc-classLibrary: libbasic
Author:
cg

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.



Class protocol:

initialization
o  initialize
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



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Thu, 21 Mar 2019 00:14:13 GMT