org.millstone.base.terminal
Interface ErrorMessage

All Superinterfaces:
java.util.EventListener, Paintable
All Known Implementing Classes:
Buffered.SourceException, CompositeErrorMessage, SystemError, UserError, Validator.InvalidValueException

public interface ErrorMessage
extends Paintable

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

Since:
3.0
Version:
3.0.3
Author:
IT Mill Ltd.

Nested Class Summary
 
Nested classes inherited from class org.millstone.base.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 org.millstone.base.terminal.Paintable
paint, requestRepaintRequests
 

Field Detail

SYSTEMERROR

public static final int SYSTEMERROR
Error code for system errors and bugs.

See Also:
Constant Field Values

CRITICAL

public static final int CRITICAL
Error code for critical error messages.

See Also:
Constant Field Values

ERROR

public static final int ERROR
Error code for regular error messages.

See Also:
Constant Field Values

WARNING

public static final int WARNING
Error code for warning messages.

See Also:
Constant Field Values

INFORMATION

public static final int INFORMATION
Error code for informational messages.

See Also:
Constant Field Values
Method Detail

getErrorLevel

public int getErrorLevel()
Gets the errors level.

Returns:
the level of error as an integer.

addListener

public 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 - to be added
See Also:
Paintable.addListener(Paintable.RepaintRequestListener)

removeListener

public 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 - to be removed
See Also:
Paintable.removeListener(Paintable.RepaintRequestListener)

requestRepaint

public 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()


Copyright © 2000,2001,2002 IT Mill Ltd. All Rights Reserved.