|
||||||||||
| 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.data.Buffered.SourceException
An exception that signals that one or more exceptions occurred while a buffered object tried to access its data source.
| Nested Class Summary | |
class |
Buffered.SourceException.MoreThanOneCauseException
An exception signaling that there are more than one causes for a SourceException. |
| 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 | |
Buffered.SourceException(Buffered source)
Creates a source exception that does not include a cause. |
|
Buffered.SourceException(Buffered source,
java.lang.Throwable cause)
Creates a source exception from a cause exception. |
|
Buffered.SourceException(Buffered source,
java.lang.Throwable[] causes)
Creates a source exception from multiplse causes. |
|
| Method Summary | |
void |
addListener(Paintable.RepaintRequestListener listener)
Error messages are inmodifiable and thus listeners are not needed. |
java.lang.Throwable |
getCause()
Get the cause of the exception. |
java.lang.Throwable[] |
getCauses()
Get all the causes for this exception. |
int |
getErrorLevel()
Get the error level of this buffered source exception. |
Buffered |
getSource()
Get the source of the exception. |
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 Buffered.SourceException(Buffered source)
source - the source object implementing the Buffered interface.
public Buffered.SourceException(Buffered source,
java.lang.Throwable cause)
source - the source object implementing the Buffered
interface.cause - the original cause for this exception.
public Buffered.SourceException(Buffered source,
java.lang.Throwable[] causes)
source - the source object implementing the Buffered
interface.causes - the original causes for this exception.| Method Detail |
public final java.lang.Throwable getCause()
throws Buffered.SourceException.MoreThanOneCauseException
getCause in class java.lang.ThrowableBuffered.SourceException.MoreThanOneCauseException - if there is more than one cause
for the exception. This is possible if the commit operation
triggers more than one error at the same time.public final java.lang.Throwable[] getCauses()
public Buffered getSource()
public int getErrorLevel()
ERROR level. Also source exception without any causes
are of level ERROR.
getErrorLevel in interface ErrorMessageErrorMessage.getErrorLevel()
public void paint(PaintTarget target)
throws PaintException
PaintablePaints 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 Paintabletarget - target UIDL stream where the component should paint
itself to
PaintException - if the paint operation failedpublic void addListener(Paintable.RepaintRequestListener listener)
ErrorMessage
addListener in interface ErrorMessagePaintable.addListener(Paintable.RepaintRequestListener)public void removeListener(Paintable.RepaintRequestListener listener)
ErrorMessage
removeListener in interface ErrorMessagePaintable.removeListener(Paintable.RepaintRequestListener)public void requestRepaint()
ErrorMessage
requestRepaint in interface ErrorMessagePaintable.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 | |||||||||