com.vaadin.terminal.
Interface ErrorMessage
All Superinterfaces:
All Known Implementing Classes:
Buffered.SourceException, CompositeErrorMessage, DateField.UnparsableDateString, SystemError, UserError, Validator.EmptyValueException, Validator.InvalidValueException
- extends Paintable, Serializable
public interface ErrorMessage
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
- See Also:
- Constant Field Values
Error code for system errors and bugs.
CRITICAL
static final int CRITICAL
- See Also:
- Constant Field Values
Error code for critical error messages.
ERROR
static final int ERROR
- See Also:
- Constant Field Values
Error code for regular error messages.
WARNING
static final int WARNING
- See Also:
- Constant Field Values
Error code for warning messages.
INFORMATION
static final int INFORMATION
- See Also:
- Constant Field Values
Error code for informational messages.
Method Detail |
---|
getErrorLevel
int getErrorLevel()
- Returns:
- the level of error as an integer.
Gets the errors level.
addListener
void addListener(Paintable.RepaintRequestListener listener)
- Specified by:
addListener
in interfacePaintable
- Parameters:
listener
- the listener to be added.- See Also:
Paintable.addListener(Paintable.RepaintRequestListener)
Error messages are inmodifiable and thus listeners are not needed. This method should be implemented as empty.
removeListener
void removeListener(Paintable.RepaintRequestListener listener)
- Specified by:
removeListener
in interfacePaintable
- Parameters:
listener
- the listener to be removed.- See Also:
Paintable.removeListener(Paintable.RepaintRequestListener)
Error messages are inmodifiable and thus listeners are not needed. This method should be implemented as empty.
requestRepaint
void requestRepaint()
- Specified by:
requestRepaint
in interfacePaintable
- See Also:
Paintable.requestRepaint()
Error messages are inmodifiable and thus listeners are not needed. This method should be implemented as empty.