Mercurial > projects > dwt-addons
comparison 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 |
comparison
equal
deleted
inserted
replaced
71:4878bef4a38e | 72:5df4896124c7 |
---|---|
50 super(status.getMessage()); | 50 super(status.getMessage()); |
51 this.status = status; | 51 this.status = status; |
52 } | 52 } |
53 | 53 |
54 /** | 54 /** |
55 * Returns the cause of this exception, or <code>null</code> if none. | |
56 * | |
57 * @return the cause for this exception | |
58 * @since 3.4 | |
59 */ | |
60 public Exception getCause() { | |
61 return status.getException(); | |
62 } | |
63 | |
64 /** | |
55 * Returns the status object for this exception. | 65 * Returns the status object for this exception. |
66 * <p> | |
67 * <b>IMPORTANT:</b><br> | |
68 * The result must NOT be used to log a <code>CoreException</code> | |
69 * (e.g., using <code>yourPlugin.getLog().log(status);</code>), | |
70 * since that code pattern hides the original stacktrace. | |
71 * Instead, create a new {@link Status} with your plug-in ID and | |
72 * this <code>CoreException</code>, and log that new status. | |
73 * </p> | |
56 * | 74 * |
57 * @return a status object | 75 * @return a status object |
58 */ | 76 */ |
59 public final IStatus getStatus() { | 77 public final IStatus getStatus() { |
60 return status; | 78 return status; |