java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.core.runtime.CoreException
- All Implemented Interfaces:
- java.io.Serializable
- public class CoreException
- extends java.lang.Exception
A checked exception representing a failure.
Core exceptions contain a status object describing the
cause of the exception.
| Nested classes inherited from class java.lang.Throwable |
|
| Fields inherited from class java.lang.Exception |
|
| Fields inherited from class java.lang.Throwable |
|
|
Constructor Summary |
CoreException(IStatus status)
Creates a new exception with the given status object. |
|
Method Summary |
IStatus |
getStatus()
Returns the status object for this exception. |
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. |
status
private IStatus status
- Status object.
CoreException
public CoreException(IStatus status)
- Creates a new exception with the given status object. The message
of the given status is used as the exception message.
getStatus
public final IStatus getStatus()
- Returns the status object for this exception.
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.
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.
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.