com.atlassian.jira.issue.attachment
Class AttachmentRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.atlassian.jira.issue.attachment.AttachmentRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AttachmentCleanupException, AttachmentDeleteException, AttachmentMoveException, AttachmentReadException, 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:
Serialized Form

Constructor Summary
AttachmentRuntimeException(String message)
           
AttachmentRuntimeException(String message, Throwable cause)
           
AttachmentRuntimeException(Throwable cause)
           
 
Method Summary
protected  com.atlassian.fugue.Option<String> doGenerateMessage(I18nHelper localisedMessages)
          Generate a localised message for this exception.
 String generateMessage(I18nHelper localisedMessages)
          Generate a localised message for this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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

AttachmentRuntimeException

public AttachmentRuntimeException(String message)

AttachmentRuntimeException

public AttachmentRuntimeException(String message,
                                  Throwable cause)

AttachmentRuntimeException

public AttachmentRuntimeException(Throwable cause)
Method Detail

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.