com.ibm.ftt.resources.core.filevalidator
Class InvalidOperationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.eclipse.core.runtime.CoreException
              extended by com.ibm.ftt.resources.core.physical.util.OperationFailedException
                  extended by com.ibm.ftt.resources.core.filevalidator.InvalidOperationException
All Implemented Interfaces:
IInvalidOperationException, IExceptionWrapper, Serializable

public class InvalidOperationException
extends OperationFailedException
implements IInvalidOperationException

Exceptions used to indicate that the specified operation on the specified resource is not allowed by the current IFileOperationValidator.

See Also:
Serialized Form

Field Summary
static String COPY_RIGHT
           
 
Constructor Summary
InvalidOperationException(String msg, FileOperation type, Object resource, Throwable e)
          Constructs a true exception object
InvalidOperationException(String msg, FileOperation type, Object resource, Throwable e, boolean warning)
           
 
Method Summary
 FileOperation getFileOperation()
           
 Object getResource()
           
 Throwable getThrowable()
           
 boolean isWarning()
           
 
Methods inherited from class com.ibm.ftt.resources.core.physical.util.OperationFailedException
getWrappedThrowable
 
Methods inherited from class org.eclipse.core.runtime.CoreException
getCause, getStatus, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.ftt.resources.core.filevalidator.IInvalidOperationException
getMessage
 

Field Detail

COPY_RIGHT

public static final String COPY_RIGHT
See Also:
Constant Field Values
Constructor Detail

InvalidOperationException

public InvalidOperationException(String msg,
                                 FileOperation type,
                                 Object resource,
                                 Throwable e)
Constructs a true exception object

Parameters:
msg - message describing the reason why the operation was disallowed
type - the type of the invalid operation
resource - resource on which the operation was to be performed
e - exception that occurred during the validation; can be null

InvalidOperationException

public InvalidOperationException(String msg,
                                 FileOperation type,
                                 Object resource,
                                 Throwable e,
                                 boolean warning)
Parameters:
msg - message describing the reason why the operation was disallowed
type - the type of the invalid operation
resource - resource on which the operation was to be performed
e - exception that occurred during the validation; can be null
warning - indicates if this exception should be treated as a warning by the exception handling code
Method Detail

getThrowable

public Throwable getThrowable()
Specified by:
getThrowable in interface IInvalidOperationException
Returns:
exception that occurred during the validation, or null if none

getResource

public Object getResource()
Specified by:
getResource in interface IInvalidOperationException
Returns:
resource on which the operation was to be performed

getFileOperation

public FileOperation getFileOperation()
Specified by:
getFileOperation in interface IInvalidOperationException
Returns:
the operation type that was determined to be invalid

isWarning

public boolean isWarning()
Specified by:
isWarning in interface IInvalidOperationException
Returns:
true if this exception should be treated as a warning by the exception handlers