Package com.vaadin.featurepack.server
Class UserError
java.lang.Object
com.vaadin.featurepack.server.AbstractErrorMessage
com.vaadin.featurepack.server.UserError
- All Implemented Interfaces:
ErrorMessage,Serializable
Vaadin 7/8
UserError is a controlled error occurred in
application. User errors are occur in normal usage of the application and
guide the user.- Author:
- Vaadin Ltd.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.featurepack.server.AbstractErrorMessage
AbstractErrorMessage.ContentModeNested classes/interfaces inherited from interface com.vaadin.featurepack.server.ErrorMessage
ErrorMessage.ErrorLevel -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AbstractErrorMessage.ContentModeDeprecated.static final AbstractErrorMessage.ContentModeDeprecated.UseAbstractErrorMessage.ContentMode.TEXTinsteadstatic final AbstractErrorMessage.ContentModeDeprecated.UseAbstractErrorMessage.ContentMode.HTMLinsteadFields inherited from interface com.vaadin.featurepack.server.ErrorMessage
CRITICAL, ERROR, INFORMATION, SYSTEMERROR, WARNING -
Constructor Summary
ConstructorsConstructorDescriptionCreates 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.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.featurepack.server.AbstractErrorMessage
addCause, getCauses, getErrorLevel, getErrorMessageForException, getFormattedHtmlMessage, getMessage, getMode, safeEscapeForHtml, setErrorLevel, setErrorLevel, setMessage, setMode, toString
-
Field Details
-
CONTENT_TEXT
Deprecated.UseAbstractErrorMessage.ContentMode.TEXTinstead -
CONTENT_PREFORMATTED
Deprecated.UseAbstractErrorMessage.ContentMode.PREFORMATTEDinstead -
CONTENT_XHTML
Deprecated.UseAbstractErrorMessage.ContentMode.HTMLinstead
-
-
Constructor Details
-
UserError
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. For Vaadin 7ErrorMessage.ErrorLevel.- Parameters:
message- the error message.contentMode- the content Mode.errorLevel- the level of error.
-
AbstractErrorMessage.ContentMode.PREFORMATTEDinstead