net.sf.taverna.raven.repository
Class ArtifactStateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.sf.taverna.raven.RavenException
              extended by net.sf.taverna.raven.repository.ArtifactStateException
All Implemented Interfaces:
java.io.Serializable

public class ArtifactStateException
extends RavenException

Thrown when an operation attempt to perform on an artifact that isn't in the right state relative to a particular repository

Author:
Tom Oinn
See Also:
Serialized Form

Constructor Summary
ArtifactStateException(ArtifactStatus state, ArtifactStatus[] validStates)
           
 
Method Summary
 ArtifactStatus getState()
           
 ArtifactStatus[] getValidStates()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArtifactStateException

public ArtifactStateException(ArtifactStatus state,
                              ArtifactStatus[] validStates)
Method Detail

getState

public ArtifactStatus getState()

getValidStates

public ArtifactStatus[] getValidStates()