Bug 5496 - expunt's timeout and eof give meaningful messages
Summary: expunt's timeout and eof give meaningful messages
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Andrew Cagney
URL:
Keywords:
Depends on:
Blocks: 5495
  Show dependency treegraph
 
Reported: 2007-12-17 16:07 UTC by Andrew Cagney
Modified: 2007-12-17 17:27 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2007-12-17 16:07:35 UTC
While, technically correct, the message from TimeoutException and EofException
are without any context.

Can they be augmented to include what was being matched at the moment they were
thrown?
Comment 1 Andrew Cagney 2007-12-17 17:27:54 UTC
commit b1956ae0e033bbecd1d58cdf732e806968e82e81
Author: Andrew Cagney <cagney@redhat.com>
Date:   Mon Dec 17 12:24:52 2007 -0500

    Refactor EndOfFileException and TimeoutException into MatchException.
    
    2007-12-17  cagney  <cagney@redhat.com>
    
        * MatchException.java: New.
        * EndOfFileException.java: Extend MatchException.
        (message()): Delete.
        * TimeoutException.java: Ditto.

commit 523f56213ae2f667cce2af311f7a837c2e22188b
Author: Andrew Cagney <cagney@redhat.com>
Date:   Fri Dec 14 20:07:35 2007 -0500

    expunit.EofException -> EndOfFileException; expand exception messages.
    
    frysk-core/frysk/hpd/ChangeLog
    2007-12-14  cagney  <cagney@redhat.com>
    
        * HpdTestbed.java: Update; EofException renamed to EndOfFileException.
        * TestPreprocessor.java: Ditto.
    
    frysk-sys/frysk/expunit/ChangeLog
    2007-12-14  cagney  <cagney@redhat.com>
    
        * EndOfFileException.java: Rename EofException.java.
        (EndOfFileException(Match[], String)): Replace EndOfFileException().
        * TimeoutException.java (TimeoutException(long, Match[], String)): Repla
        * Expect.java: Update.