|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--org.millstone.base.terminal.SystemError
System error is a runtime exception caused by error in system. The system error can be shown to the user as it implements ErrorMessage interface, but contains technical information such as stack trace and exception.
Nested Class Summary |
Nested classes inherited from class org.millstone.base.terminal.Paintable |
Paintable.RepaintRequestEvent, Paintable.RepaintRequestListener |
Field Summary |
Fields inherited from interface org.millstone.base.terminal.ErrorMessage |
CRITICAL, ERROR, INFORMATION, SYSTEMERROR, WARNING |
Constructor Summary | |
SystemError(java.lang.String message)
Constructor for SystemError with error message specified. |
|
SystemError(java.lang.String message,
java.lang.Throwable cause)
Constructor for SystemError with causing exception and error message. |
|
SystemError(java.lang.Throwable cause)
Constructor for SystemError with cause. |
Method Summary | |
void |
addListener(Paintable.RepaintRequestListener listener)
Error messages are inmodifiable and thus listeners are not needed. |
java.lang.Throwable |
getCause()
Get cause for the error |
int |
getErrorLevel()
Gets the errors level. |
void |
paint(PaintTarget target)
Paints the paintable into a UIDL stream. |
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. |
void |
requestRepaintRequests()
Request sending of repaint events on any further visible changes. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SystemError(java.lang.String message)
message
- Textual error description.public SystemError(java.lang.String message, java.lang.Throwable cause)
message
- Textual error description.cause
- The throwable causing the system error.public SystemError(java.lang.Throwable cause)
cause
- The throwable causing the system error.Method Detail |
public final int getErrorLevel()
ErrorMessage
getErrorLevel
in interface ErrorMessage
public void paint(PaintTarget target) throws PaintException
Paintable
Paints the paintable into a UIDL stream. This method creates the UIDL sequence describing it and outputs it to the given UIDL stream.
It's is called when the contents of the component should be painted in response to the component first being shown or having been altered so that its visual representation is changed.
paint
in interface Paintable
target
- target UIDL stream where the component should paint
itself to
PaintException
- if the paint operation failedpublic java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
public void addListener(Paintable.RepaintRequestListener listener)
ErrorMessage
addListener
in interface ErrorMessage
Paintable.addListener(Paintable.RepaintRequestListener)
public void removeListener(Paintable.RepaintRequestListener listener)
ErrorMessage
removeListener
in interface ErrorMessage
Paintable.removeListener(Paintable.RepaintRequestListener)
public void requestRepaint()
ErrorMessage
requestRepaint
in interface ErrorMessage
Paintable.requestRepaint()
public void requestRepaintRequests()
Paintable
requestRepaintRequests
in interface Paintable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |