net.clackrouter.error
Class ErrorReporter

java.lang.Object
  extended by net.clackrouter.error.ErrorReporter

public class ErrorReporter
extends java.lang.Object

Class for remote error reporting when Clack peforms a fatal error.

The class attempts to dump System.out and System.err to a listening port on a remote server, so that they error can be recognized and fixed.


Constructor Summary
ErrorReporter()
           
 
Method Summary
static void reportError(ClackFramework graphpad, java.lang.String msg)
          Report an error with a String message
static void reportError(java.lang.String msg, java.lang.Exception error)
          Report an error using a string message and an exception, for use when no ClackGraphpad handle exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorReporter

public ErrorReporter()
Method Detail

reportError

public static void reportError(ClackFramework graphpad,
                               java.lang.String msg)
Report an error with a String message

Parameters:
graphpad -
msg -

reportError

public static void reportError(java.lang.String msg,
                               java.lang.Exception error)
Report an error using a string message and an exception, for use when no ClackGraphpad handle exists.

Parameters:
msg -
error -