com.vaadin.server
Class UserError
java.lang.Object
com.vaadin.server.AbstractErrorMessage
com.vaadin.server.UserError
- All Implemented Interfaces:
- ErrorMessage, java.io.Serializable
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:
- Serialized Form
Methods inherited from class com.vaadin.server.AbstractErrorMessage |
addCause, getCauses, getErrorLevel, getErrorMessageForException, getFormattedHtmlMessage, getMessage, getMode, setErrorLevel, setMessage, setMode, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
UserError
public UserError(java.lang.String textErrorMessage)
- Creates a textual error message of level ERROR.
- Parameters:
textErrorMessage
- the text of the error message.
UserError
public UserError(java.lang.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.
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.