g-Eclipse
Release 1.0.0

eu.geclipse.core.reporting
Class ProblemException

java.lang.Object
  extended by CoreException
      extended by eu.geclipse.core.reporting.ProblemException
Direct Known Subclasses:
AuthenticationException, GridGSSException

public class ProblemException
extends CoreException

Exception implementation that may carry an associated IProblem.


Constructor Summary
ProblemException(IProblem problem)
          Create a new ProblemException with the specified associated problem.
ProblemException(java.lang.String problemID, java.lang.String pluginID)
          Create a new ProblemException for the problem with the specified ID.
ProblemException(java.lang.String problemID, java.lang.String description, java.lang.String pluginID)
          Create a new ProblemException for the problem with the specified ID.
ProblemException(java.lang.String problemID, java.lang.String description, java.lang.Throwable exception, java.lang.String pluginID)
          Create a new ProblemException for the problem with the specified ID.
ProblemException(java.lang.String problemID, java.lang.Throwable exception, java.lang.String pluginID)
          Create a new ProblemException for the problem with the specified ID.
 
Method Summary
 IProblem getProblem()
          Get this exception's associated problem if one was specified during creation time or null.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProblemException

public ProblemException(java.lang.String problemID,
                        java.lang.String pluginID)
Create a new ProblemException for the problem with the specified ID.

Parameters:
problemID - The ID of the problem that should be reported.
pluginID - The ID of the plug-in where the problem happened.
See Also:
ProblemException(IProblem)

ProblemException

public ProblemException(java.lang.String problemID,
                        java.lang.Throwable exception,
                        java.lang.String pluginID)
Create a new ProblemException for the problem with the specified ID.

Parameters:
problemID - The ID of the problem that should be reported.
exception - An optional Throwable that may have caused the problem.
pluginID - The ID of the plug-in where the problem happened.
See Also:
ProblemException(IProblem)

ProblemException

public ProblemException(java.lang.String problemID,
                        java.lang.String description,
                        java.lang.String pluginID)
Create a new ProblemException for the problem with the specified ID.

Parameters:
problemID - The ID of the problem that should be reported.
description - An optional description that may replace the problems standard description.
pluginID - The ID of the plug-in where the problem happened.
See Also:
ProblemException(IProblem)

ProblemException

public ProblemException(java.lang.String problemID,
                        java.lang.String description,
                        java.lang.Throwable exception,
                        java.lang.String pluginID)
Create a new ProblemException for the problem with the specified ID.

Parameters:
problemID - The ID of the problem that should be reported.
description - An optional description that may replace the problems standard description.
exception - An optional Throwable that may have caused the problem.
pluginID - The ID of the plug-in where the problem happened.
See Also:
ProblemException(IProblem)

ProblemException

public ProblemException(IProblem problem)
Create a new ProblemException with the specified associated problem. The IProblem.getStatus()-method is used to create a status for the super constructor. Notice that this status object represents the state of the problem at the creation time of the exception. See IProblem.getStatus() for more details.

Parameters:
problem - The problem associated to this exception.
See Also:
#ProblemException(IStatus)
Method Detail

getProblem

public IProblem getProblem()
Get this exception's associated problem if one was specified during creation time or null.

Returns:
The associated problem or null.

g-Eclipse
Release 1.0.0