Login | Register
My pages Projects Community openCollabNet

Discussions > dev > [maxq-dev] Error reporting class proposal

maxq
Discussion topic

Back to topic list

[maxq-dev] Error reporting class proposal

Author fcohen
Full name Frank Cohen
Date 2004-10-22 08:02:15 PDT
Message I would like to move the error reporting methods in SwingMain.java into
their own static class. This will make it easier for me to embed MaxQ
into TestMaker. Right now MaxQ assumes that SwingMain is always
instantiated. That isn't the case when embedding MaxQ into another
application. The new class will be:

public class MaxQExceptionHandler
{
     /** Constructor for MaxQ as a stand-alone application, passes in
the SwingMain object
      * that is used to report exceptions.
    */
     public MaxQExceptionHandler( SwingMain singletoneSwingMain ) ...

     /** Constructor for applications that embed MaxQ. All errors are
reported to the output stream.
     */
     public MaxQExceptionHandler( PrintStream outstream ) ...

     /** Constructor for applications that embed MaxQ. All errors are
reported to System.out.
     */
     public MaxQExceptionHandler() ...

     public static void reportOutsideException( Throwable ex ) ...

     public static void reportException( Throwable ex ) ...

     public static void report Exception ( String error ) ...

}

Comments, feedback, objections?

-Frank

---
Frank Cohen, PushToTest, http://www.PushToTest.com, phone: 408 374 7426
Author of "Java Testing and Design: From Unit Tests to Automated Web
Tests"
from Prentice Hall, details at http://thebook.pushtotest.com


--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: dev-unsubscribe at maxq dot tigris dot org
For additional commands, e-mail: dev-help at maxq dot tigris dot org

« Previous message in topic | 1 of 9 | Next message in topic »

Messages

Show all messages in topic

[maxq-dev] Error reporting class proposal fcohen Frank Cohen 2004-10-22 08:02:15 PDT
     RE: [maxq-dev] Error reporting class proposal hugues Hugues Ferland 2004-10-22 09:00:48 PDT
         Re: [maxq-dev] Error reporting class proposal oliverbock Oliver Bock 2004-10-22 19:11:14 PDT
             RE: [maxq-dev] Error reporting class proposal hugues Hugues Ferland 2004-10-25 06:56:28 PDT
                 Re: [maxq-dev] Error reporting class proposal oliverbock Oliver Bock 2004-10-25 14:05:05 PDT
                     RE: [maxq-dev] Error reporting class proposal hugues Hugues Ferland 2004-10-25 15:56:27 PDT
     Re: [maxq-dev] Error reporting class proposal oliverbock Oliver Bock 2004-10-22 19:07:40 PDT
         Re: [maxq-dev] Error reporting class proposal fcohen Frank Cohen 2004-10-23 07:18:43 PDT
             Re: [maxq-dev] Error reporting class proposal oliverbock Oliver Bock 2004-10-24 00:44:19 PDT
Messages per page: