public class CoreException extends Exception
Core exceptions contain a status object describing the cause of the exception.
This class can be used without OSGi running.
IStatus,
Serialized Form| Constructor and Description |
|---|
CoreException(IStatus status)
Creates a new exception with the given status object.
|
| Modifier and Type | Method and Description |
|---|---|
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(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(PrintWriter output)
Prints a stack trace out for the exception, and
any nested exception that it may have embedded in
its Status object.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringpublic CoreException(IStatus status)
status - the status object to be associated with this exceptionpublic final IStatus getStatus()
public void printStackTrace()
printStackTrace in class Throwablepublic void printStackTrace(PrintStream output)
printStackTrace in class Throwableoutput - the stream to write topublic void printStackTrace(PrintWriter output)
printStackTrace in class Throwableoutput - the stream to write toGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.