own label for ASSERTS and error messages

From: Thomas, Andrew <"Thomas,>
Date: Tue, 12 Mar 2002 13:57:29 -0000

----boundary-LibPST-iamunique-1816120261_-_-
Content-type: text/plain

Hello Oberon Crew,

        the ability in v1.4 of BlackBox is nice. I wonder if something
similar could be done for user error messages?
Maybe


        MODULE Test;

                PROCEDURE Fred (OUT ok: BOOLEAN)
                VAR
                   errorNum: INTEGER;
                BEGIN
                        xxxx
                        if error then
                                errorNum := 1;
                                StdErrors.SetError(errorNum); ok := FALSE;
                                RETURN
                        end
                END Fred;

        END Test.

        
        DEFINITION StdErrors;

        VAR
                error-: ARRAY 240 OF CHAR;

                PROCEDURE SetError(errorNum: INTEGER);

        END StdErrors.

the procedure Fred would use StdErrors.SetError to set the error string in
StdErrors to Test.Fred.1 which could then be mapped to a useful
user message.

Regards

        Andrew
--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.


----boundary-LibPST-iamunique-1816120261_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxy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wYXINClxwYXINCmEpIFRvIHBvc3QgeW91IHNob3VsZCB1c2UgdGhlIHNhbWUgYWRk
cmVzcyBieSB3aGljaCB5b3UgYXJlIHN1YnNjcmliZWQgdG8gdGhlIG1haWxpbmcgbGlzdC4gVGhh
dCB3YXksIHRoZSBsaXN0IHNlcnZlciB3aWxsIHJlY29nbml6ZSB5b3UgYXMgc3Vic2NyaWJlciBh
bmQgZm9yd2FyZCB5b3VyIHBvc3RpbmcgaW1tZWRpYXRlbHksIHdpdGhvdXQgY3JlYXRpbmcgYW55
IG92ZXJoZWFkLlxwYXINClxwYXINCmIpIElmLCBmb3Igc29tZSByZWFzb24sIHlvdSBjYW5ub3Qg
cG9zdCBmcm9tIHRoZSBhZGRyZXNzLCBieSB3aGljaCB5b3UgYXJlIHN1YnNjcmliZWQsIHlvdXIg
bWVzc2FnZSB3aWxsIGJlIG1vZGVyYXRlZCB0byBhdm9pZCBzcGFtLiBQbGVhc2UgdW5kZXJzdGFu
ZCB0aGF0IG1vZGVyYXRpb24gd2lsbCBvZnRlbiBjYXVzZSBzb21lIGRlbGF5LCBpbiBwYXJ0aWN1
bGFyIG92ZXIgd2Vla2VuZHMgb3IgaG9seWRheXMuXHBhcg0KXHBhcg0KfQ==


----boundary-LibPST-iamunique-1816120261_-_---
Received on Tue Mar 12 2002 - 14:57:29 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:29:47 UTC