org.eclipse.emf.emfstore.internal.client.model.util
Class EMFStoreCommandWithResultAndException<T,E>

java.lang.Object
  extended by org.eclipse.emf.common.command.AbstractCommand
      extended by org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand
          extended by org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommandWithResult<T>
              extended by org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommandWithResultAndException<T,E>
Type Parameters:
T - result type
E - exception type
All Implemented Interfaces:
org.eclipse.emf.common.command.Command

public abstract class EMFStoreCommandWithResultAndException<T,E>
extends EMFStoreCommandWithResult<T>

Command that can buffer a result for later retrieval.

Author:
koegel

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.AbstractCommand.NonDirtying
 
Constructor Summary
EMFStoreCommandWithResultAndException()
           
 
Method Summary
 E getException()
          Get the exception that occured during command execution if any.
 boolean hasException()
          Determine if an exception occured during command execution.
 
Methods inherited from class org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommandWithResult
run, run
 
Methods inherited from class org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand
canUndo, execute, getRuntimeException, redo, shouldIgnoreExceptions
 
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand
canExecute, chain, dispose, getAffectedObjects, getDescription, getLabel, getResult, setDescription, setLabel, toString, undo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EMFStoreCommandWithResultAndException

public EMFStoreCommandWithResultAndException()
Method Detail

getException

public E getException()
Get the exception that occured during command execution if any.

Returns:
the exception or null

hasException

public boolean hasException()
Determine if an exception occured during command execution.

Returns:
true if an exception has occured


Copyright © 2015. All Rights Reserved.