ALBPM Process API

fuego.papi
Class AttachmentOperationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by fuego.lang.DefaultException
              extended by fuego.papi.OperationException
                  extended by fuego.papi.AttachmentOperationException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AttachmentEditionNotPossibleException, AttachmentExternalStorageAuthenticationException, AttachmentHandlerNotAvailableException, AttachmentLockedException, AttachmentNotFoundException, AttachmentNotLockedException, AttachmentsNotAvailableInProcessException, CannotGetWorkingAttachmentsException, CannotObtainAttachmentContentException, CannotRetrieveInstanceAttachmentsException, CheckInAttachmentException, CheckOutAttachmentException, EditAttachmentException, InvalidAttachmentArgumentLengthException, ReleaseAttachmentException

public class AttachmentOperationException
extends OperationException

This exception can be thronw by any method who performs any operation over an Attachment.

See Also:
ProcessServiceSession.checkInAttachment(Attachment, String, java.io.File), ProcessServiceSession.checkOutAttachment(Attachment, String), ProcessServiceSession.instanceAttach(InstanceInfo, String, String, String, java.io.File), ProcessServiceSession.obtainEditionLock(Attachment), ProcessServiceSession.releaseEditionLock(Attachment), ProcessServiceSession.releaseEditionLock(Attachment, java.io.File), Serialized Form

Constructor Summary
AttachmentOperationException()
          just for serialization purposes
AttachmentOperationException(fuego.resources.Msg errorMsg)
           
AttachmentOperationException(String attachmentId, String attachmentName, Throwable cause)
           
AttachmentOperationException(String attachmentId, Throwable cause)
          Construct the exception with the attachment identification where the operation failed.
 
Method Summary
 String getAttachementId()
          Return the attachemnt identification where the operation was executed and the exception was thrown.
 String getDetail(Locale locale)
          This method return the detail of the exception.
 String getTechnicalDetail(Locale locale)
          This method return the technical detail of the exception.
 
Methods inherited from class fuego.papi.OperationException
wrap
 
Methods inherited from class fuego.lang.DefaultException
getCode, getKey, getMessage, getMessage, getStackTrace, getStackTraceString, getUserMessage, hasDetail
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttachmentOperationException

public AttachmentOperationException()
just for serialization purposes


AttachmentOperationException

public AttachmentOperationException(fuego.resources.Msg errorMsg)

AttachmentOperationException

public AttachmentOperationException(String attachmentId,
                                    Throwable cause)
Construct the exception with the attachment identification where the operation failed.

Parameters:
attachmentId - Attachment identification where the operations failed

AttachmentOperationException

public AttachmentOperationException(String attachmentId,
                                    String attachmentName,
                                    Throwable cause)
Method Detail

getAttachementId

public String getAttachementId()
Return the attachemnt identification where the operation was executed and the exception was thrown.

Returns:
String with attachment identification

getDetail

public String getDetail(Locale locale)
This method return the detail of the exception. If this exception has cause return the detail of the cause.

Overrides:
getDetail in class fuego.lang.DefaultException

getTechnicalDetail

public String getTechnicalDetail(Locale locale)
This method return the technical detail of the exception. If this exception has cause return the technical detail of the cause.

Overrides:
getTechnicalDetail in class fuego.lang.DefaultException

ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved