com.vaadin.data
Class Buffered.SourceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.vaadin.data.Buffered.SourceException
All Implemented Interfaces:
java.io.Serializable
Enclosing interface:
Buffered

public static class Buffered.SourceException
extends java.lang.RuntimeException
implements java.io.Serializable

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.

Since:
3.0
Author:
Vaadin Ltd.
See Also:
Serialized Form

Constructor Summary
Buffered.SourceException(Buffered source)
          Creates a source exception that does not include a cause.
Buffered.SourceException(Buffered source, java.lang.Throwable... causes)
          Creates a source exception from multiple causes.
 
Method Summary
 java.lang.Throwable getCause()
          Gets the cause of the exception.
 java.lang.Throwable[] getCauses()
          Gets all the causes for this exception.
 Buffered getSource()
          Gets a source of the exception.
 
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

Buffered.SourceException

public Buffered.SourceException(Buffered source)
Creates a source exception that does not include a cause.

Parameters:
source - the source object implementing the Buffered interface.

Buffered.SourceException

public Buffered.SourceException(Buffered source,
                                java.lang.Throwable... causes)
Creates a source exception from multiple causes.

Parameters:
source - the source object implementing the Buffered interface.
causes - the original causes for this exception.
Method Detail

getCause

public final java.lang.Throwable getCause()
Gets the cause of the exception.

Overrides:
getCause in class java.lang.Throwable
Returns:
The (first) cause for the exception, null if no cause.

getCauses

public final java.lang.Throwable[] getCauses()
Gets all the causes for this exception.

Returns:
throwables that caused this exception

getSource

public Buffered getSource()
Gets a source of the exception.

Returns:
the Buffered object which generated this exception.


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.