Class AuthorOperationException

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isOperationRejectedOnPurpose()  
      void setOperationRejectedOnPurpose​(boolean operationRejected)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AuthorOperationException

        public AuthorOperationException​(java.lang.String message)
        Constructor.
        Parameters:
        message - The error message.
      • AuthorOperationException

        public AuthorOperationException​(java.lang.String message,
                                        java.lang.Throwable cause)
        Constructor.
        Parameters:
        message - The error message.
        cause - The cause of the exception.
    • Method Detail

      • 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.