org.eclipse.emf.emfstore.client.util
Class ESVoidCallableWithException<E extends Exception>

java.lang.Object
  extended by org.eclipse.emf.emfstore.client.util.ESVoidCallableWithException<E>
Type Parameters:
E - the type of exception thrown by run
All Implemented Interfaces:
Callable<Void>

public abstract class ESVoidCallableWithException<E extends Exception>
extends Object
implements Callable<Void>

Convenience class for using RunESCommand without a return value, but possibly throwing an exception.


Constructor Summary
ESVoidCallableWithException()
           
 
Method Summary
 Void call()
          
abstract  void run()
          Executes this callable.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ESVoidCallableWithException

public ESVoidCallableWithException()
Method Detail

call

public Void call()
          throws Exception

Specified by:
call in interface Callable<Void>
Throws:
Exception
See Also:
Callable.call()

run

public abstract void run()
                  throws Exception
Executes this callable.

Throws:
Exception - in case an error occurs


Copyright © 2015. All Rights Reserved.