- Subject: Re: read_mini throws Run-Time Error
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- Date: Thu, 18 May 2006 14:26:07 +0000 (UTC)
Hi John,
"John E. Davis" <davis@xxxxxxxxxxxxx> wrote:
> Jörg Sommer <joerg@xxxxxxxxxxxx> wrote:
>>why read_mini() throws a RuntimeError when pressing Ctrl+G instead of
>>UserBreakError?
>
> UserBreakError is a "subclass" of the RuntimeError. This means that
> UserBreakError is a specific kind of RuntimeError.
>
> I just executed the following and it indicated that ^G produced a
> UserBreak error.
>
> define test ()
> {
> variable e;
> try (e)
> {
> () = read_mini ("foo", "", "");
> }
catch UserBreakError:
{
message("We have an UserBreakError");
}
> catch AnyError:
> {
> vmessage ("read_mini caught %s error", e.descr);
> }
> }
>
> What does this produce for you?
"read_mini caught Run-Time Error error" With the code added above, I get
the same message. Ergo e does not match the UserBreakError clause.
Bye, Jörg.
--
Der kommt den Göttern am nächsten, der auch dann schweigen kann,
wenn er im Recht ist. (Cato; 234-149 v. Chr.)
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2006 date index]
[2006 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]