Package com.vaadin.featurepack.server
Class SystemError
java.lang.Object
com.vaadin.featurepack.server.AbstractErrorMessage
com.vaadin.featurepack.server.SystemError
- All Implemented Interfaces:
ErrorMessage,Serializable
SystemError is an Vaadin 7/8 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.- Author:
- Vaadin Ltd.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.featurepack.server.AbstractErrorMessage
AbstractErrorMessage.ContentModeNested classes/interfaces inherited from interface com.vaadin.featurepack.server.ErrorMessage
ErrorMessage.ErrorLevel -
Field Summary
Fields inherited from interface com.vaadin.featurepack.server.ErrorMessage
CRITICAL, ERROR, INFORMATION, SYSTEMERROR, WARNING -
Constructor Summary
ConstructorsConstructorDescriptionSystemError(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
Methods inherited from class com.vaadin.featurepack.server.AbstractErrorMessage
addCause, getCauses, getErrorLevel, getErrorMessageForException, getFormattedHtmlMessage, getMessage, getMode, safeEscapeForHtml, setErrorLevel, setErrorLevel, setMessage, setMode, toString
-
Constructor Details
-
SystemError
Constructor for SystemError with error message specified.- Parameters:
message- the Textual error description.
-
SystemError
Constructor for SystemError with causing exception and error message.- Parameters:
message- the Textual error description.cause- the throwable causing the system error.
-
SystemError
Constructor for SystemError with cause.- Parameters:
cause- the throwable causing the system error.
-
-
Method Details
-
getHtmlMessage
Returns the message of the error in HTML. Note that this API may change in future versions.
-