JPF 1.5.1

org.java.plugin.boot
Class BootErrorHandlerGui

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

public class BootErrorHandlerGui
extends java.lang.Object
implements BootErrorHandler

Standard boot error handler for GUI applications. Uses Swing based dialogue to show error details to user and prompt for input.

Version:
$Id$

Constructor Summary
BootErrorHandlerGui()
           
 
Method Summary
 boolean handleError(java.lang.String message, java.lang.Exception e)
          Called if non-fatal error has occurred and application boot may be continued.
 boolean handleError(java.lang.String message, IntegrityCheckReport report)
          Called if an error has been detected during plug-ins integrity check and application boot may be continued.
 void handleFatalError(java.lang.String message)
          Called if fatal error has occurred.
 void handleFatalError(java.lang.String message, java.lang.Throwable t)
          Called if fatal error has occurred.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BootErrorHandlerGui

public BootErrorHandlerGui()
Method Detail

handleFatalError

public void handleFatalError(java.lang.String message)
Description copied from interface: BootErrorHandler
Called if fatal error has occurred.

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)
Description copied from interface: BootErrorHandler
Called if fatal error has occurred.

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)
Description copied from interface: BootErrorHandler
Called if non-fatal error has occurred and application boot may be continued.

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)
Description copied from interface: BootErrorHandler
Called if an error has been detected during plug-ins integrity check and application boot may be continued.

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.