com.limegroup.gnutella
Class ErrorService

java.lang.Object
  extended bycom.limegroup.gnutella.ErrorService

public final class ErrorService
extends java.lang.Object

This class handles displaying errors from the backend to the user. The method to set the callback must be called immediately to allow the backend to use this service during construction time.


Method Summary
static void error(java.lang.Throwable problem)
          Displays the error to the user.
static void error(java.lang.Throwable problem, java.lang.String detail)
          Displays the error to the user with a specific detail information.
static ErrorCallback getErrorCallback()
          Gets the ErrorCallback currently in use.
static void setErrorCallback(ErrorCallback callback)
          Sets the ErrorCallback class to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setErrorCallback

public static void setErrorCallback(ErrorCallback callback)
Sets the ErrorCallback class to use.


getErrorCallback

public static ErrorCallback getErrorCallback()
Gets the ErrorCallback currently in use.


error

public static void error(java.lang.Throwable problem)
Displays the error to the user.


error

public static void error(java.lang.Throwable problem,
                         java.lang.String detail)
Displays the error to the user with a specific detail information.