Package com.vaadin.server
Class UserError
- java.lang.Object
-
- com.vaadin.server.AbstractErrorMessage
-
- com.vaadin.server.UserError
-
- All Implemented Interfaces:
ErrorMessage,Serializable
public class UserError extends AbstractErrorMessage
UserErroris 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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.server.AbstractErrorMessage
AbstractErrorMessage.ContentMode
-
Nested classes/interfaces inherited from interface com.vaadin.server.ErrorMessage
ErrorMessage.ErrorLevel
-
-
Field Summary
Fields Modifier and Type Field Description static AbstractErrorMessage.ContentModeCONTENT_PREFORMATTEDDeprecated.As of 7.0, useAbstractErrorMessage.ContentMode.PREFORMATTEDinsteadstatic AbstractErrorMessage.ContentModeCONTENT_TEXTDeprecated.As of 7.0, useAbstractErrorMessage.ContentMode.TEXTinsteadstatic AbstractErrorMessage.ContentModeCONTENT_XHTMLDeprecated.As of 7.0, useAbstractErrorMessage.ContentMode.HTMLinstead-
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, ErrorMessage.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.TEXTinstead
-
CONTENT_PREFORMATTED
@Deprecated public static final AbstractErrorMessage.ContentMode CONTENT_PREFORMATTED
Deprecated.As of 7.0, useAbstractErrorMessage.ContentMode.PREFORMATTEDinstead
-
CONTENT_XHTML
@Deprecated public static final AbstractErrorMessage.ContentMode CONTENT_XHTML
Deprecated.As of 7.0, useAbstractErrorMessage.ContentMode.HTMLinstead
-
-
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, ErrorMessage.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.
-
-