public class DocumentOperationException extends Exception
DocumentOperation.performOperation(com.biomatters.geneious.publicapi.documents.AnnotatedPluginDocument[], jebl.util.ProgressListener, Options) AnnotatedPluginDocument
using AnnotatedPluginDocument.getDocument().| Modifier and Type | Class and Description |
|---|---|
static class |
DocumentOperationException.Canceled
Represents a
DocumentOperation
or SequenceAnnotationGenerator
that has failed because it has been canceled. |
| Constructor and Description |
|---|
DocumentOperationException(String message)
|
DocumentOperationException(String message,
Throwable cause)
|
DocumentOperationException(Throwable cause)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCanceled()
Returns true if the document operation exception was thrown because the operation was canceled, usually in response to
ProgressListener.isCanceled returning true. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DocumentOperationException(String message)
message - user messagepublic DocumentOperationException(String message, Throwable cause)
message - user messagecause - the cause of the exception.public DocumentOperationException(Throwable cause)
cause - the cause of the exception.public boolean isCanceled()
ProgressListener.isCanceled returning true.
The implementation of this method returns true if this instanceof DocumentOperationException.Canceled or if the exception message Throwable.getMessage() is either "Cancelled", or "Canceled". (UK or US spelling)ProgressListener.isCanceled() returning true