Package ro.sync.ecss.extensions.api
Class AuthorOperationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
ro.sync.ecss.extensions.api.AuthorOperationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthorOperationStoppedByUserException
,PasteAsReferenceException
An exception thrown by an
AuthorOperation
when it fails.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAuthorOperationException
(String message) Constructor.AuthorOperationException
(String message, Throwable cause) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setOperationRejectedOnPurpose
(boolean operationRejected) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AuthorOperationException
Constructor.- Parameters:
message
- The error message.
-
AuthorOperationException
Constructor.- Parameters:
message
- The error message.cause
- The cause of the exception.
-
-
Method Details
-
setOperationRejectedOnPurpose
public void setOperationRejectedOnPurpose(boolean operationRejected) - Parameters:
operationRejected
- The operationRejected to set.
-
isOperationRejectedOnPurpose
public boolean isOperationRejectedOnPurpose()- Returns:
true
if the operation was deliberately rejected. It is not a programming mistake.
-