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


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]