Bug 5496

Summary: expunt's timeout and eof give meaningful messages
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Andrew Cagney <cagney>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Project(s) to access: ssh public key:
Bug Depends on:    
Bug Blocks: 5495    

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.