JPF 1.5.1

org.java.plugin.boot
Class BootErrorHandlerConsole

java.lang.Object
  extended by org.java.plugin.boot.BootErrorHandlerConsole
All Implemented Interfaces:
BootErrorHandler

public class BootErrorHandlerConsole
extends java.lang.Object
implements BootErrorHandler

Console out based error handler implementation, most suites good for non-interactive service-style applications.

Version:
$Id$

Constructor Summary
BootErrorHandlerConsole()
           
 
Method Summary
 boolean handleError(java.lang.String message, java.lang.Exception e)
          Does the same as handleFatalError(String, Throwable) always returns false.
 boolean handleError(java.lang.String message, IntegrityCheckReport report)
          Does the same as handleFatalError(String) always returns false.
 void handleFatalError(java.lang.String message)
          Prints given message to the "standard" error output.
 void handleFatalError(java.lang.String message, java.lang.Throwable t)
          Prints given message and error stack trace to the "standard" error output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BootErrorHandlerConsole

public BootErrorHandlerConsole()
Method Detail

handleFatalError

public void handleFatalError(java.lang.String message)
Prints given message to the "standard" error output.

Specified by:
handleFatalError in interface BootErrorHandler
Parameters:
message - error message
See Also:
BootErrorHandler.handleFatalError( java.lang.String)

handleFatalError

public void handleFatalError(java.lang.String message,
                             java.lang.Throwable t)
Prints given message and error stack trace to the "standard" error output.

Specified by:
handleFatalError in interface BootErrorHandler
Parameters:
message - error message
t - an error
See Also:
BootErrorHandler.handleFatalError( java.lang.String, java.lang.Throwable)

handleError

public boolean handleError(java.lang.String message,
                           java.lang.Exception e)
Does the same as handleFatalError(String, Throwable) always returns false.

Specified by:
handleError in interface BootErrorHandler
Parameters:
message - error message
e - an error
Returns:
true if user wish to continue application start
See Also:
BootErrorHandler.handleError(java.lang.String, java.lang.Exception)

handleError

public boolean handleError(java.lang.String message,
                           IntegrityCheckReport report)
Does the same as handleFatalError(String) always returns false.

Specified by:
handleError in interface BootErrorHandler
Parameters:
message - error message
report - integrity check report
Returns:
true if user wish to continue application start
See Also:
BootErrorHandler.handleError(java.lang.String, org.java.plugin.registry.IntegrityCheckReport)

JPF 1.5.1

Copyright © 2004-2007 Dmitry Olshansky. All Rights Reserved.