Mercurial > projects > dwt-addons
diff dwtx/core/runtime/CoreException.d @ 72:5df4896124c7
JFace and its examples do compile
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 22 May 2008 17:56:17 +0200 |
parents | 6518c18a01f7 |
children |
line wrap: on
line diff
--- a/dwtx/core/runtime/CoreException.d Thu May 22 04:03:58 2008 +0200 +++ b/dwtx/core/runtime/CoreException.d Thu May 22 17:56:17 2008 +0200 @@ -52,7 +52,25 @@ } /** + * Returns the cause of this exception, or <code>null</code> if none. + * + * @return the cause for this exception + * @since 3.4 + */ + public Exception getCause() { + return status.getException(); + } + + /** * Returns the status object for this exception. + * <p> + * <b>IMPORTANT:</b><br> + * The result must NOT be used to log a <code>CoreException</code> + * (e.g., using <code>yourPlugin.getLog().log(status);</code>), + * since that code pattern hides the original stacktrace. + * Instead, create a new {@link Status} with your plug-in ID and + * this <code>CoreException</code>, and log that new status. + * </p> * * @return a status object */