We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
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 Description static AbstractErrorMessage.ContentMode
CONTENT_PREFORMATTED
Deprecated.
As of 7.0, useAbstractErrorMessage.ContentMode.PREFORMATTED
insteadstatic AbstractErrorMessage.ContentMode
CONTENT_TEXT
Deprecated.
As of 7.0, useAbstractErrorMessage.ContentMode.TEXT
insteadstatic AbstractErrorMessage.ContentMode
CONTENT_XHTML
Deprecated.
As of 7.0, useAbstractErrorMessage.ContentMode.HTML
instead-
Fields inherited from interface com.vaadin.server.ErrorMessage
CRITICAL, ERROR, INFORMATION, SYSTEMERROR, WARNING
-
-
Constructor Summary
Constructors Constructor 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, useAbstractErrorMessage.ContentMode.TEXT
instead
-
CONTENT_PREFORMATTED
@Deprecated public static final AbstractErrorMessage.ContentMode CONTENT_PREFORMATTED
Deprecated.As of 7.0, useAbstractErrorMessage.ContentMode.PREFORMATTED
instead
-
CONTENT_XHTML
@Deprecated public static final AbstractErrorMessage.ContentMode CONTENT_XHTML
Deprecated.As of 7.0, useAbstractErrorMessage.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.
-
-