aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/terminal/SystemError.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/itmill/toolkit/terminal/SystemError.java')
-rw-r--r--src/com/itmill/toolkit/terminal/SystemError.java98
1 files changed, 54 insertions, 44 deletions
diff --git a/src/com/itmill/toolkit/terminal/SystemError.java b/src/com/itmill/toolkit/terminal/SystemError.java
index 617bfe43b4..1e3f9fa8a9 100644
--- a/src/com/itmill/toolkit/terminal/SystemError.java
+++ b/src/com/itmill/toolkit/terminal/SystemError.java
@@ -1,91 +1,100 @@
/* *************************************************************************
- IT Mill Toolkit
+ IT Mill Toolkit
- Development of Browser User Interfaces Made Easy
+ Development of Browser User Interfaces Made Easy
- Copyright (C) 2000-2006 IT Mill Ltd
-
- *************************************************************************
+ Copyright (C) 2000-2006 IT Mill Ltd
+
+ *************************************************************************
- This product is distributed under commercial license that can be found
- from the product package on license.pdf. Use of this product might
- require purchasing a commercial license from IT Mill Ltd. For guidelines
- on usage, see licensing-guidelines.html
+ This product is distributed under commercial license that can be found
+ from the product package on license.pdf. Use of this product might
+ require purchasing a commercial license from IT Mill Ltd. For guidelines
+ on usage, see licensing-guidelines.html
- *************************************************************************
-
- For more information, contact:
-
- IT Mill Ltd phone: +358 2 4802 7180
- Ruukinkatu 2-4 fax: +358 2 4802 7181
- 20540, Turku email: info@itmill.com
- Finland company www: www.itmill.com
-
- Primary source for information and releases: www.itmill.com
+ *************************************************************************
+
+ For more information, contact:
+
+ IT Mill Ltd phone: +358 2 4802 7180
+ Ruukinkatu 2-4 fax: +358 2 4802 7181
+ 20540, Turku email: info@itmill.com
+ Finland company www: www.itmill.com
+
+ Primary source for information and releases: www.itmill.com
- ********************************************************************** */
+ ********************************************************************** */
package com.itmill.toolkit.terminal;
import java.io.PrintWriter;
import java.io.StringWriter;
-/**
- * <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.
- *
+/**
+ * <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.
- * @version @VERSION@
+ * @version
+ * @VERSION@
* @since 3.0
*/
public class SystemError extends RuntimeException implements ErrorMessage {
/**
- * Serial generated by eclipse.
- */
- 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.
+ * Serial generated by eclipse.
+ */
+ 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.
*/
private Throwable cause = null;
- /**
+ /**
* Constructor for SystemError with error message specified.
- * @param message the Textual error description.
+ *
+ * @param message
+ * the Textual error description.
*/
public SystemError(String message) {
super(message);
}
- /**
+ /**
* Constructor for SystemError with causing exception and error message.
- * @param message the Textual error description.
- * @param cause the throwable causing the system error.
+ *
+ * @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.
+ *
+ * @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)
*/
@@ -102,7 +111,7 @@ public class SystemError extends RuntimeException implements ErrorMessage {
// Paint the exception
if (cause != null) {
- if (message != null)
+ if (message != null)
target.addUIDL("<br/><br/>");
target.addSection("b", "Exception");
target.addUIDL("<br/><br/>");
@@ -112,11 +121,12 @@ public class SystemError extends RuntimeException implements ErrorMessage {
}
target.endTag("error");
-
+
}
/**
* Gets cause for the error.
+ *
* @return the cause.
* @see java.lang.Throwable#getCause()
*/