com.ibm.ftt.resources.core.filevalidator
Class InvalidOperationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.core.runtime.CoreException
com.ibm.ftt.resources.core.physical.util.OperationFailedException
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
COPY_RIGHT
public static final String COPY_RIGHT
- See Also:
- Constant Field Values
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 disallowedtype - the type of the invalid operationresource - resource on which the operation was to be performede - 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 disallowedtype - the type of the invalid operationresource - resource on which the operation was to be performede - exception that occurred during the validation; can be nullwarning - indicates if this exception should be treated as a warning by
the exception handling code
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