public class RuntimeDocumentOperationException extends RuntimeException
DocumentOperationException are unable to do so because their API doesn't allow it.
In this case the method may throw a RuntimeDocumentOperationException instead. Methods that do this will declare this in their javadoc and
the calling code should catch the RuntimeDocumentOperationException and call throwCause() on it. For example
try {
invokeMethodThatCouldThrowRuntimeDocumentOperationException();
} catch (RuntimeDocumentOperationException e) {
e.throwCause();
}
Core Geneious will automatically catch and rethrow these exceptions if they happen while running the primary thread of a DocumentOperation or SequenceAnnotationGenerator.
In other situations is is the responsibility of the calling code to handle them.| Constructor and Description |
|---|
RuntimeDocumentOperationException(DocumentOperationException cause) |
| Modifier and Type | Method and Description |
|---|---|
DocumentOperationException |
getCause() |
void |
throwCause()
Rethrows the cause of this exception
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RuntimeDocumentOperationException(DocumentOperationException cause)
cause - the cause that is to be wrapped and rethrown later via throwCause()public DocumentOperationException getCause()
public void throwCause()
throws DocumentOperationException
DocumentOperationException - the cause passed to the constructor of this class