com.vaadin.server.
Class UserError
- java.lang.Object
-
- com.vaadin.server.AbstractErrorMessage
-
- com.vaadin.server.UserError
-
All Implemented Interfaces:
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.Since:
3.0
Author:
Vaadin Ltd.
See Also:
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.server.AbstractErrorMessage
AbstractErrorMessage.ContentMode
-
-
Field Summary
Fields Modifier and Type Field and Description static AbstractErrorMessage.ContentMode
CONTENT_PREFORMATTED
Deprecated.
As of 7.0, useContentMode#PREFORMATTED
insteadstatic AbstractErrorMessage.ContentMode
CONTENT_TEXT
Deprecated.
As of 7.0, useContentMode#TEXT
insteadstatic AbstractErrorMessage.ContentMode
CONTENT_XHTML
Deprecated.
As of 7.0, useContentMode#HTML
instead-
Fields inherited from interface com.vaadin.server.ErrorMessage
CRITICAL, ERROR, INFORMATION, SYSTEMERROR, WARNING
-
-
Constructor Summary
Constructors Constructor and Description UserError(String textErrorMessage)
Creates a textual error message of level ERROR.
UserError(String message, AbstractErrorMessage.ContentMode contentMode, ErrorLevel errorLevel)
Creates an error message with level and content mode.
-
Method Summary
-
Methods inherited from class com.vaadin.server.AbstractErrorMessage
addCause, getCauses, getErrorLevel, getErrorMessageForException, getFormattedHtmlMessage, getMessage, getMode, setErrorLevel, setMessage, setMode, toString
-
-
-
-
Field Detail
-
CONTENT_TEXT
@Deprecated public static final AbstractErrorMessage.ContentMode CONTENT_TEXT
Deprecated. As of 7.0, use
ContentMode#TEXT
instead
-
CONTENT_PREFORMATTED
@Deprecated public static final AbstractErrorMessage.ContentMode CONTENT_PREFORMATTED
Deprecated. As of 7.0, use
ContentMode#PREFORMATTED
instead
-
CONTENT_XHTML
@Deprecated public static final AbstractErrorMessage.ContentMode CONTENT_XHTML
Deprecated. As of 7.0, use
ContentMode#HTML
instead
-
-
Constructor Detail
-
UserError
public UserError(String textErrorMessage)
Creates a textual error message of level ERROR.
Parameters:
textErrorMessage
- the text of the error message.
-
UserError
public UserError(String message, AbstractErrorMessage.ContentMode contentMode, ErrorLevel errorLevel)
Creates an error message with level and content mode.
Parameters:
message
- the error message.contentMode
- the content Mode.errorLevel
- the level of error.
-
-