Class AttachmentRuntimeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.atlassian.jira.issue.attachment.AttachmentRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AttachmentCleanupException, AttachmentCopyException, AttachmentDeleteException, AttachmentMoveException, AttachmentReadException, AttachmentsDisabledException, AttachmentStorageUnavailableException, AttachmentWriteException, NoAttachmentDataException, TemporaryAttachmentStorageUnavailableException

@ExperimentalApi public class AttachmentRuntimeException extends RuntimeException
Base class for attachment exceptions that may come from asynchronous operations.
Since:
v6.3
See Also:
  • Constructor Details

    • AttachmentRuntimeException

      public AttachmentRuntimeException(String message)
    • AttachmentRuntimeException

      public AttachmentRuntimeException(String message, Throwable cause)
    • AttachmentRuntimeException

      public AttachmentRuntimeException(Throwable cause)
  • Method Details

    • generateMessage

      public final String generateMessage(I18nHelper localisedMessages)
      Generate a localised message for this exception.
      Parameters:
      localisedMessages - Internationalisation helper that can provide localised messages for given codes.
      Returns:
      a localised message for this exception
    • doGenerateMessage

      protected io.atlassian.fugue.Option<String> doGenerateMessage(I18nHelper localisedMessages)
      Generate a localised message for this exception.
      Parameters:
      localisedMessages - Internationalisation helper that can provide localised messages for given codes.
      Returns:
      a localised message for this exception. Option.none() to use the default (i.e. getMessage()).