Class UserError

User error is a controlled error occurred in application. User errors are occur in normal usage of the application and guide the user.

Synopsis

Since

3.0

Inheritance Path.  java.lang.Object-> com.itmill.toolkit.terminal.UserError

UserError(String)

Parameters

textErrorMessage

The text of the error message.

Create a textual error message of level ERROR.

UserError(String, int, int)

Create error message with level and content mode.

CONTENT_PREFORMATTED

Content mode, where the error contains preformatted text.

CONTENT_TEXT

Content mode, where the error contains only plain text.

CONTENT_UIDL

Formatted content mode, where the contents is XML restricted to the UIDL 1.0 formatting markups.

addListener(Paintable.RepaintRequestListener)

Description copied from interface: addListener

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

getErrorLevel()

Parameters

return

the level of error as an integer.

Description copied from interface: getErrorLevel

Gets the errors level.

removeListener(Paintable.RepaintRequestListener)

Description copied from interface: removeListener

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

requestRepaint()

Description copied from interface: requestRepaint

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