jed-users mailing list

[2006 Date Index] [2006 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: read_mini throws Run-Time Error


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 AnyError:
     {
        vmessage ("read_mini caught %s error", e.descr);
     }
}

What does this produce for you?
Thanks,
--John

--------------------------
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]