com.vaadin.server
Class SystemError
java.lang.Object
com.vaadin.server.AbstractErrorMessage
com.vaadin.server.SystemError
- All Implemented Interfaces:
- ErrorMessage, java.io.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
- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
Constructor Summary |
SystemError(java.lang.String message)
Constructor for SystemError with error message specified. |
SystemError(java.lang.String message,
java.lang.Throwable cause)
Constructor for SystemError with causing exception and error message. |
SystemError(java.lang.Throwable cause)
Constructor for SystemError with cause. |
Method Summary |
protected java.lang.String |
getHtmlMessage()
Returns the message of the error in HTML. |
Methods inherited from class com.vaadin.server.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 |
SystemError
public SystemError(java.lang.String message)
- Constructor for SystemError with error message specified.
- Parameters:
message
- the Textual error description.
SystemError
public SystemError(java.lang.String message,
java.lang.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(java.lang.Throwable cause)
- Constructor for SystemError with cause.
- Parameters:
cause
- the throwable causing the system error.
getHtmlMessage
protected java.lang.String getHtmlMessage()
- Returns the message of the error in HTML.
Note that this API may change in future versions.
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.