|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.vaadin.data.Buffered.SourceException
public static class Buffered.SourceException
An exception that signals that one or more exceptions occurred while a buffered object tried to access its data source or if there is a problem in processing a data source.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.vaadin.terminal.Paintable |
---|
Paintable.RepaintRequestEvent, Paintable.RepaintRequestListener |
Field Summary |
---|
Fields inherited from interface com.vaadin.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,
Throwable cause)
Creates a source exception from a cause exception. |
|
Buffered.SourceException(Buffered source,
Throwable[] causes)
Creates a source exception from multiple causes. |
Method Summary | |
---|---|
void |
addListener(Paintable.RepaintRequestListener listener)
Error messages are inmodifiable and thus listeners are not needed. |
Throwable |
getCause()
Gets the cause of the exception. |
Throwable[] |
getCauses()
Gets all the causes for this exception. |
String |
getDebugId()
Get's currently set debug identifier |
int |
getErrorLevel()
Gets the error level of this buffered source exception. |
Buffered |
getSource()
Gets a 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. |
void |
setDebugId(String id)
Adds an unique id for component that get's transferred to terminal for testing purposes. |
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, Throwable cause)
source
- the source object implementing the Buffered interface.cause
- the original cause for this exception.public Buffered.SourceException(Buffered source, Throwable[] causes)
source
- the source object implementing the Buffered interface.causes
- the original causes for this exception.Method Detail |
---|
public final Throwable getCause()
getCause
in class Throwable
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 Throwable[] getCauses()
public Buffered getSource()
public int getErrorLevel()
The causes that do not specify error level default to
ERROR
level. Also source exception without any causes
are of level ERROR
.
getErrorLevel
in interface ErrorMessage
ErrorMessage.getErrorLevel()
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 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
- the target UIDL stream where the component should paint itself
to.
PaintException
- if the paint operation failed.public void addListener(Paintable.RepaintRequestListener listener)
ErrorMessage
addListener
in interface ErrorMessage
addListener
in interface Paintable
listener
- the listener to be added.Paintable.addListener(Paintable.RepaintRequestListener)
public void removeListener(Paintable.RepaintRequestListener listener)
ErrorMessage
removeListener
in interface ErrorMessage
removeListener
in interface Paintable
listener
- the listener to be removed.Paintable.removeListener(Paintable.RepaintRequestListener)
public void requestRepaint()
ErrorMessage
requestRepaint
in interface ErrorMessage
requestRepaint
in interface Paintable
Paintable.requestRepaint()
public void requestRepaintRequests()
Paintable
This method is normally used only by the terminals to note paintables about implicit repaints (painting the component without actually invoking paint method).
requestRepaintRequests
in interface Paintable
public String getDebugId()
Paintable
getDebugId
in interface Paintable
public void setDebugId(String id)
Paintable
Note, that with the current terminal implementation the identifier cannot be changed while the component is visible. This means that the identifier should be set before the component is painted for the first time and kept the same while visible in the client.
setDebugId
in interface Paintable
id
- A short (< 20 chars) alphanumeric id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |