@ExperimentalApi public class

AttachmentRuntimeException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.atlassian.jira.issue.attachment.AttachmentRuntimeException
Known Direct Subclasses

@ExperimentalApi

This class is considered usable by external developers but its contracts have not stabilized.

Experimental APIs may be changed at any time before being marked @Internal or @PublicApi.

Class Overview

Base class for attachment exceptions that may come from asynchronous operations.

Summary

Public Constructors
AttachmentRuntimeException(String message)
AttachmentRuntimeException(String message, Throwable cause)
AttachmentRuntimeException(Throwable cause)
Public Methods
final String generateMessage(I18nHelper localisedMessages)
Generate a localised message for this exception.
Protected Methods
Option<String> doGenerateMessage(I18nHelper localisedMessages)
Generate a localised message for this exception.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public AttachmentRuntimeException (String message)

public AttachmentRuntimeException (String message, Throwable cause)

public AttachmentRuntimeException (Throwable cause)

Public Methods

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

Protected Methods

protected 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()).