classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] FYI: implemented JEditorPane.read()


From: Mark Wielaard
Subject: Re: [cp-patches] FYI: implemented JEditorPane.read()
Date: Thu, 20 Oct 2005 01:22:06 +0200

On Wed, 2005-10-19 at 15:24 +0000, Roman Kennke wrote:
> +    Document doc = (Document) desc;
> +    try
> +      {
> +        kit.read(in, doc, 0);
> +      }
> +    catch (BadLocationException ex)
> +      {
> +        assert false : "BadLocationException must not be thrown here.";
> +      }

I believe something like:

    InternalError ie = new InternalError();
    ie.initCause(ex);
    throw ie;

Is more useful here if this ever happens since you will then get the
original stack trace.

Cheers,

Mark

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]