Class InvalidDraftStatusException

All Implemented Interfaces:
Serializable

public final class InvalidDraftStatusException extends DraftException
Indicates the current state of the draft is invalid for the requested changes.
See Also:
  • Constructor Details

    • InvalidDraftStatusException

      public InvalidDraftStatusException(DraftStatus status, DraftStatus expected)
      Creates a new draft status error.
      Parameters:
      status - The current status
      expected - The status the draft was expected to be in for the operation to succeed.
  • Method Details

    • getStatus

      @NotNull public @NotNull DraftStatus getStatus()
      The status at the time the exception was thrown.
      Returns:
    • getExpected

      public DraftStatus getExpected()
      The expected status.
      Returns: