diff options
author | Jani Laakso <jani.laakso@itmill.com> | 2007-04-12 14:41:25 +0000 |
---|---|---|
committer | Jani Laakso <jani.laakso@itmill.com> | 2007-04-12 14:41:25 +0000 |
commit | 544a4770365be51e26b1b8418f2f4226db5bcb15 (patch) | |
tree | c5ef61d190d461a3aa789ef8444159f7bd1bd7b3 /src/com/itmill/toolkit/terminal/SystemError.java | |
parent | fde5869b30ae8da8ec5d884d3438815e1a63aca1 (diff) | |
download | vaadin-framework-544a4770365be51e26b1b8418f2f4226db5bcb15.tar.gz vaadin-framework-544a4770365be51e26b1b8418f2f4226db5bcb15.zip |
Pulled changesets from branches/4.0.0-SRIT into trunk, done by
mohamed.atique@renaissance-it.com. All changes are related to javadocs only.
Merge was done beetween revisions 924:1192.
svn changeset:1212/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/terminal/SystemError.java')
-rw-r--r-- | src/com/itmill/toolkit/terminal/SystemError.java | 46 |
1 files changed, 31 insertions, 15 deletions
diff --git a/src/com/itmill/toolkit/terminal/SystemError.java b/src/com/itmill/toolkit/terminal/SystemError.java index c6dfe77c49..617bfe43b4 100644 --- a/src/com/itmill/toolkit/terminal/SystemError.java +++ b/src/com/itmill/toolkit/terminal/SystemError.java @@ -31,8 +31,9 @@ package com.itmill.toolkit.terminal; import java.io.PrintWriter; import java.io.StringWriter; -/** System error is a runtime exception caused by error in system. The system - * error can be shown to the user as it implements ErrorMessage interface, +/** + * <code>SystemError</code> is a runtime exception caused by error in system. The system + * error can be shown to the user as it implements <code>ErrorMessage</code> interface, * but contains technical information such as stack trace and exception. * * @author IT Mill Ltd. @@ -46,37 +47,48 @@ public class SystemError extends RuntimeException implements ErrorMessage { */ private static final long serialVersionUID = 3256445789512675891L; - /** The cause of the system error. The cause is stored separately as - * JDK 1.3 does not support causes natively */ + /** + * The cause of the system error. The cause is stored separately as + * JDK 1.3 does not support causes natively. + */ private Throwable cause = null; - /** Constructor for SystemError with error message specified. - * @param message Textual error description. + /** + * Constructor for SystemError with error message specified. + * @param message the Textual error description. */ public SystemError(String message) { super(message); } - /** Constructor for SystemError with causing exception and error message. - * @param message Textual error description. - * @param cause The throwable causing the system error. + /** + * Constructor for SystemError with causing exception and error message. + * @param message the Textual error description. + * @param cause the throwable causing the system error. */ public SystemError(String message, Throwable cause) { super(message); this.cause = cause; } - /** Constructor for SystemError with cause. - * @param cause The throwable causing the system error. + /** + * Constructor for SystemError with cause. + * @param cause the throwable causing the system error. */ public SystemError(Throwable cause) { this.cause = cause; } - + + /** + * @see com.itmill.toolkit.terminal.ErrorMessage#getErrorLevel() + */ public final int getErrorLevel() { return ErrorMessage.SYSTEMERROR; } - + + /** + * @see com.itmill.toolkit.terminal.Paintable#paint(com.itmill.toolkit.terminal.PaintTarget) + */ public void paint(PaintTarget target) throws PaintException { target.startTag("error"); @@ -100,10 +112,14 @@ public class SystemError extends RuntimeException implements ErrorMessage { } target.endTag("error"); - + } - /** Get cause for the error */ + /** + * Gets cause for the error. + * @return the cause. + * @see java.lang.Throwable#getCause() + */ public Throwable getCause() { return cause; } |