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
.AbstractErrorMessage.ContentMode
ErrorMessage.ErrorLevel
CRITICAL, ERROR, INFORMATION, SYSTEMERROR, WARNING
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getHtmlMessage()
Returns the message of the error in HTML.
|
addCause, getCauses, getErrorLevel, getErrorMessageForException, getFormattedHtmlMessage, getMessage, getMode, setErrorLevel, setMessage, setMode, toString
public SystemError(String message)
message
- the Textual error description.public SystemError(String message, Throwable cause)
message
- the Textual error description.cause
- the throwable causing the system error.public SystemError(Throwable cause)
cause
- the throwable causing the system error.protected String getHtmlMessage()
Copyright © 2019 Vaadin Ltd. All rights reserved.