public class UserError extends AbstractErrorMessage
UserError
is a controlled error occurred in application. User
errors are occur in normal usage of the application and guide the user.AbstractErrorMessage.ContentMode
ErrorMessage.ErrorLevel
Modifier and Type | Field and Description |
---|---|
static AbstractErrorMessage.ContentMode |
CONTENT_PREFORMATTED
Deprecated.
As of 7.0, use
ContentMode#PREFORMATTED instead |
static AbstractErrorMessage.ContentMode |
CONTENT_TEXT
Deprecated.
As of 7.0, use
ContentMode#TEXT instead |
static AbstractErrorMessage.ContentMode |
CONTENT_XHTML
Deprecated.
As of 7.0, use
ContentMode#HTML instead |
CRITICAL, ERROR, INFORMATION, SYSTEMERROR, WARNING
Constructor and Description |
---|
UserError(String textErrorMessage)
Creates a textual error message of level ERROR.
|
UserError(String message,
AbstractErrorMessage.ContentMode contentMode,
ErrorMessage.ErrorLevel errorLevel)
Creates an error message with level and content mode.
|
addCause, getCauses, getErrorLevel, getErrorMessageForException, getFormattedHtmlMessage, getMessage, getMode, setErrorLevel, setMessage, setMode, toString
@Deprecated public static final AbstractErrorMessage.ContentMode CONTENT_TEXT
ContentMode#TEXT
instead@Deprecated public static final AbstractErrorMessage.ContentMode CONTENT_PREFORMATTED
ContentMode#PREFORMATTED
instead@Deprecated public static final AbstractErrorMessage.ContentMode CONTENT_XHTML
ContentMode#HTML
insteadpublic UserError(String textErrorMessage)
textErrorMessage
- the text of the error message.public UserError(String message, AbstractErrorMessage.ContentMode contentMode, ErrorMessage.ErrorLevel errorLevel)
message
- the error message.contentMode
- the content Mode.errorLevel
- the level of error.Copyright © 2019 Vaadin Ltd. All rights reserved.