/********************************************************************
* API for Servlets and SignatureGenerators in RAP
*  enabling extensible behaviors for RAP Digital Objects
* RAP - Repository Access Protocol
********************************************************************/
package ServletAPI;

/**
 * The AttachmentException class is used by a Servlet to report that
 * the Servlet has not yet received the DataStream(s) required to do
 * its work. This exception can then be used to retrieve the attachment
 * role names that do not have attached DataStream(s).
 *
 * @author Christophe Blanchi
 * @author Sandy Payette
 * @author Naomi Dushay
 **/
public class AttachmentException extends ServletAPI.ServletAPIException
{
    /**
     * a list of role names for missing attachments when an 
     * AttachmentException is thrown
     **/
    String[] MissingAttachments;

    public AttachmentException(
        int status, String ExceptionMessage, String[] MissingAttachments)
    {
        super(status, ExceptionMessage);
        this.MissingAttachments = MissingAttachments;
    }

    /**
     * @return a list of role names of the missing attachments associated
     * with an instance of AttachmentException
     **/
    public String[] getMissingAttachments()
    {
        return MissingAttachments;
    }
}