org.eclipse.emf.emfstore.internal.client.model.util
Class EMFStoreCommandWithException<T>

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.EMFStoreCommand
              extended by org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommandWithException<T>
Type Parameters:
T - type of the exception
All Implemented Interfaces:
org.eclipse.emf.common.command.Command

public abstract class EMFStoreCommandWithException<T>
extends EMFStoreCommand

Abstract superclass for commands that are run on the EMFStore command stack and can throw eceptions.

Author:
mkoegel

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.AbstractCommand.NonDirtying
 
Constructor Summary
EMFStoreCommandWithException()
           
 
Method Summary
 T getException()
          Get the exception that occured if any.
 boolean hasException()
          Determine if exception occured on execution.
 
Methods inherited from class org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand
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

EMFStoreCommandWithException

public EMFStoreCommandWithException()
Method Detail

getException

public T getException()
Get the exception that occured if any.

Returns:
the exception or null

hasException

public boolean hasException()
Determine if exception occured on execution.

Returns:
true if exception occured.


Copyright © 2015. All Rights Reserved.