Package com.vaadin.server
Class SystemError
- java.lang.Object
-
- com.vaadin.server.AbstractErrorMessage
-
- com.vaadin.server.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, useUserError
or a custom implementation ofErrorMessage
.- Since:
- 3.0
- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.server.AbstractErrorMessage
AbstractErrorMessage.ContentMode
-
Nested classes/interfaces inherited from interface com.vaadin.server.ErrorMessage
ErrorMessage.ErrorLevel
-
-
Field Summary
-
Fields inherited from interface com.vaadin.server.ErrorMessage
CRITICAL, ERROR, INFORMATION, SYSTEMERROR, WARNING
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
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.
-
-