org.eclipse.core.internal.resources
Class ResourceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.eclipse.core.runtime.CoreException
              extended by org.eclipse.core.internal.resources.ResourceException
All Implemented Interfaces:
java.io.Serializable

public class ResourceException
extends org.eclipse.core.runtime.CoreException

A checked exception representing a failure.

Resource exceptions contain a status object describing the cause of the exception, and optionally the path of the resource where the failure occurred.

See Also:
IStatus, Serialized Form

Constructor Summary
ResourceException(int code, org.eclipse.core.runtime.IPath path, java.lang.String message, java.lang.Throwable exception)
           
ResourceException(org.eclipse.core.runtime.IStatus status)
          Constructs a new exception with the given status object.
 
Method Summary
 void printStackTrace()
          Prints a stack trace out for the exception, and any nested exception that it may have embedded in its Status object.
 void printStackTrace(java.io.PrintStream output)
          Prints a stack trace out for the exception, and any nested exception that it may have embedded in its Status object.
 void printStackTrace(java.io.PrintWriter output)
          Prints a stack trace out for the exception, and any nested exception that it may have embedded in its Status object.
 
Methods inherited from class org.eclipse.core.runtime.CoreException
getCause, getStatus
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceException

public ResourceException(int code,
                         org.eclipse.core.runtime.IPath path,
                         java.lang.String message,
                         java.lang.Throwable exception)

ResourceException

public ResourceException(org.eclipse.core.runtime.IStatus status)
Constructs a new exception with the given status object.

Parameters:
status - the status object to be associated with this exception
See Also:
IStatus
Method Detail

printStackTrace

public void printStackTrace()
Prints a stack trace out for the exception, and any nested exception that it may have embedded in its Status object.

Overrides:
printStackTrace in class org.eclipse.core.runtime.CoreException

printStackTrace

public void printStackTrace(java.io.PrintStream output)
Prints a stack trace out for the exception, and any nested exception that it may have embedded in its Status object.

Overrides:
printStackTrace in class org.eclipse.core.runtime.CoreException

printStackTrace

public void printStackTrace(java.io.PrintWriter output)
Prints a stack trace out for the exception, and any nested exception that it may have embedded in its Status object.

Overrides:
printStackTrace in class org.eclipse.core.runtime.CoreException