com.vaadin.terminal
Class SystemError

java.lang.Object
  extended by com.vaadin.terminal.AbstractErrorMessage
      extended by com.vaadin.terminal.SystemError
All Implemented Interfaces:
ErrorMessage, Serializable

public class SystemError
extends AbstractErrorMessage

SystemError is an error message for a problem caused by error in system, not the user application code. The system error can contain technical information such as stack trace and exception. SystemError does not support HTML in error messages or stack traces. If HTML messages are required, use UserError or a custom implementation of ErrorMessage.

Since:
3.0
Version:
7.0.0.alpha3
Author:
Vaadin Ltd.
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vaadin.terminal.AbstractErrorMessage
AbstractErrorMessage.ContentMode
 
Nested classes/interfaces inherited from interface com.vaadin.terminal.ErrorMessage
ErrorMessage.ErrorLevel
 
Field Summary
 
Fields inherited from interface com.vaadin.terminal.ErrorMessage
CRITICAL, ERROR, INFORMATION, SYSTEMERROR, WARNING
 
Constructor Summary
SystemError(String message)
          Constructor for SystemError with error message specified.
SystemError(String message, Throwable cause)
          Constructor for SystemError with causing exception and error message.
SystemError(Throwable cause)
          Constructor for SystemError with cause.
 
Method Summary
protected  String getHtmlMessage()
          Returns the message of the error in HTML.
 
Methods inherited from class com.vaadin.terminal.AbstractErrorMessage
addCause, getCauses, getErrorLevel, getErrorMessageForException, getFormattedHtmlMessage, getMessage, getMode, setErrorLevel, setMessage, setMode, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SystemError

public SystemError(String message)
Constructor for SystemError with error message specified.

Parameters:
message - the Textual error description.

SystemError

public SystemError(String message,
                   Throwable cause)
Constructor for SystemError with causing exception and error message.

Parameters:
message - the Textual error description.
cause - the throwable causing the system error.

SystemError

public SystemError(Throwable cause)
Constructor for SystemError with cause.

Parameters:
cause - the throwable causing the system error.
Method Detail

getHtmlMessage

protected String getHtmlMessage()
Returns the message of the error in HTML. Note that this API may change in future versions.



Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.