com.vaadin.terminal.


Interface ErrorMessage

All Superinterfaces:

EventListener, Paintable, Serializable

All Known Implementing Classes:

Buffered.SourceException, CompositeErrorMessage, DateField.UnparsableDateString, SystemError, UserError, Validator.EmptyValueException, Validator.InvalidValueException

public interface ErrorMessage
extends Paintable, Serializable

Interface for rendering error messages to terminal. All the visible errors shown to user must implement this interface.

Since:

3.0

Version:

6.8.18

Author:

Vaadin Ltd.

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vaadin.terminal.Paintable
Paintable.RepaintRequestEvent, Paintable.RepaintRequestListener
 
Field Summary
static int CRITICAL
          Error code for critical error messages.
static int ERROR
          Error code for regular error messages.
static int INFORMATION
          Error code for informational messages.
static int SYSTEMERROR
          Error code for system errors and bugs.
static int WARNING
          Error code for warning messages.
 
Method Summary
 void addListener(Paintable.RepaintRequestListener listener)
          Error messages are inmodifiable and thus listeners are not needed.
 int getErrorLevel()
          Gets the errors level.
 void removeListener(Paintable.RepaintRequestListener listener)
          Error messages are inmodifiable and thus listeners are not needed.
 void requestRepaint()
          Error messages are inmodifiable and thus listeners are not needed.
 
Methods inherited from interface com.vaadin.terminal.Paintable
getDebugId, paint, requestRepaintRequests, setDebugId
 

Field Detail

SYSTEMERROR

static final int SYSTEMERROR

Error code for system errors and bugs.

See Also:
Constant Field Values

CRITICAL

static final int CRITICAL

Error code for critical error messages.

See Also:
Constant Field Values

ERROR

static final int ERROR

Error code for regular error messages.

See Also:
Constant Field Values

WARNING

static final int WARNING

Error code for warning messages.

See Also:
Constant Field Values

INFORMATION

static final int INFORMATION

Error code for informational messages.

See Also:
Constant Field Values

Method Detail

getErrorLevel

int getErrorLevel()

Gets the errors level.

Returns:
the level of error as an integer.

addListener

void addListener(Paintable.RepaintRequestListener listener)

Error messages are inmodifiable and thus listeners are not needed. This method should be implemented as empty.

Specified by:
addListener in interface Paintable

Parameters:
listener - the listener to be added.
See Also:
Paintable.addListener(Paintable.RepaintRequestListener)

removeListener

void removeListener(Paintable.RepaintRequestListener listener)

Error messages are inmodifiable and thus listeners are not needed. This method should be implemented as empty.

Specified by:
removeListener in interface Paintable

Parameters:
listener - the listener to be removed.
See Also:
Paintable.removeListener(Paintable.RepaintRequestListener)

requestRepaint

void requestRepaint()

Error messages are inmodifiable and thus listeners are not needed. This method should be implemented as empty.

Specified by:
requestRepaint in interface Paintable

See Also:
Paintable.requestRepaint()