aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/terminal/SystemError.java
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2007-11-19 14:03:05 +0000
committerMarc Englund <marc.englund@itmill.com>2007-11-19 14:03:05 +0000
commitf2e3722df9676436680afc0f1991e91e1696fb99 (patch)
tree6f255ff78abaf96f1e71a1f2c9ecd3b66647f4a2 /src/com/itmill/toolkit/terminal/SystemError.java
parent93291f532db9d545cf2a8dd98e2671f27cd197b0 (diff)
downloadvaadin-framework-f2e3722df9676436680afc0f1991e91e1696fb99.tar.gz
vaadin-framework-f2e3722df9676436680afc0f1991e91e1696fb99.zip
MASS REFORMAT.
According to http://toolkit.intra.itmill.com/trac/itmilltoolkit/wiki/CodingConventions svn changeset:2864/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/terminal/SystemError.java')
-rw-r--r--src/com/itmill/toolkit/terminal/SystemError.java204
1 files changed, 102 insertions, 102 deletions
diff --git a/src/com/itmill/toolkit/terminal/SystemError.java b/src/com/itmill/toolkit/terminal/SystemError.java
index 90c045c18c..0fbace4337 100644
--- a/src/com/itmill/toolkit/terminal/SystemError.java
+++ b/src/com/itmill/toolkit/terminal/SystemError.java
@@ -44,107 +44,107 @@ import java.io.StringWriter;
*/
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.
- */
- private Throwable cause = null;
-
- /**
- * 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
- * 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.
- */
- 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");
- target.addAttribute("level", "system");
-
- // Paint the error message
- String message = getLocalizedMessage();
- if (message != null) {
- target.addSection("h2", message);
- }
-
- // Paint the exception
- if (cause != null) {
- target.addSection("h3", "Exception");
- StringWriter buffer = new StringWriter();
- cause.printStackTrace(new PrintWriter(buffer));
- target.addSection("pre", buffer.toString());
- }
-
- target.endTag("error");
-
- }
-
- /**
- * Gets cause for the error.
- *
- * @return the cause.
- * @see java.lang.Throwable#getCause()
- */
- public Throwable getCause() {
- return cause;
- }
-
- /* Documented in super interface */
- public void addListener(RepaintRequestListener listener) {
- }
-
- /* Documented in super interface */
- public void removeListener(RepaintRequestListener listener) {
- }
-
- /* Documented in super interface */
- public void requestRepaint() {
- }
-
- /* Documented in super interface */
- public void requestRepaintRequests() {
- }
+ /**
+ * 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.
+ */
+ 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.
+ */
+ public SystemError(String message, Throwable cause) {
+ super(message);
+ this.cause = cause;
+ }
+
+ /**
+ * 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");
+ target.addAttribute("level", "system");
+
+ // Paint the error message
+ String message = getLocalizedMessage();
+ if (message != null) {
+ target.addSection("h2", message);
+ }
+
+ // Paint the exception
+ if (cause != null) {
+ target.addSection("h3", "Exception");
+ StringWriter buffer = new StringWriter();
+ cause.printStackTrace(new PrintWriter(buffer));
+ target.addSection("pre", buffer.toString());
+ }
+
+ target.endTag("error");
+
+ }
+
+ /**
+ * Gets cause for the error.
+ *
+ * @return the cause.
+ * @see java.lang.Throwable#getCause()
+ */
+ public Throwable getCause() {
+ return cause;
+ }
+
+ /* Documented in super interface */
+ public void addListener(RepaintRequestListener listener) {
+ }
+
+ /* Documented in super interface */
+ public void removeListener(RepaintRequestListener listener) {
+ }
+
+ /* Documented in super interface */
+ public void requestRepaint() {
+ }
+
+ /* Documented in super interface */
+ public void requestRepaintRequests() {
+ }
}