Fuego Process API

fuego.papi
Class AttachmentOperationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byfuego.lang.DefaultException
              extended byfuego.papi.OperationException
                  extended byfuego.papi.AttachmentOperationException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AttachmentEditionNotPossibleException, AttachmentLockedException, AttachmentNotFoundException, 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(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, hasTechnicalDetail
 
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(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)

AttachmentOperationException

public AttachmentOperationException()
just for serialization purposes

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.


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.


Fuego Process API

© Copyright 1996/2003 Fuego Inc. All Rights Reserved