com.vaadin.terminal
Class UserError

java.lang.Object
  extended by com.vaadin.terminal.AbstractErrorMessage
      extended by com.vaadin.terminal.UserError
All Implemented Interfaces:
ErrorMessage, 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
Version:
7.0.0.alpha3
Author:
Vaadin Ltd.
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vaadin.terminal.AbstractErrorMessage
AbstractErrorMessage.ContentMode
 
Nested classes/interfaces inherited from interface com.vaadin.terminal.ErrorMessage
ErrorMessage.ErrorLevel
 
Field Summary
static AbstractErrorMessage.ContentMode CONTENT_PREFORMATTED
          Deprecated. from 7.0, use ContentMode#PREFORMATTED instead    
static AbstractErrorMessage.ContentMode CONTENT_TEXT
          Deprecated. from 7.0, use ContentMode#TEXT instead    
static AbstractErrorMessage.ContentMode CONTENT_XHTML
          Deprecated. from 7.0, use ContentMode#XHTML instead    
 
Fields inherited from interface com.vaadin.terminal.ErrorMessage
CRITICAL, ERROR, INFORMATION, SYSTEMERROR, WARNING
 
Constructor Summary
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.terminal.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
 

Field Detail

CONTENT_TEXT

@Deprecated
public static final AbstractErrorMessage.ContentMode CONTENT_TEXT
Deprecated. from 7.0, use ContentMode#TEXT instead    

CONTENT_PREFORMATTED

@Deprecated
public static final AbstractErrorMessage.ContentMode CONTENT_PREFORMATTED
Deprecated. from 7.0, use ContentMode#PREFORMATTED instead    

CONTENT_XHTML

@Deprecated
public static final AbstractErrorMessage.ContentMode CONTENT_XHTML
Deprecated. from 7.0, use ContentMode#XHTML 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,
                 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-2011 Vaadin Ltd. All Rights Reserved.