/**
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 *
 * Copyright (C)
 * <a href="http://www.inab.org">Spanish National Institute of Bioinformatics (INB)</a>
 * <a href="http://www.bsc.es">Barcelona Supercomputing Center (BSC)</a>
 * <a href="http://inb.bsc.es">Computational Node 6</a>
 */

package org.inb.biomoby.shared.wsrf.fault;

import javax.xml.ws.WebFault;
import org.inb.wsrf.rl2.ResourceNotDestroyedFaultType;

@WebFault(name = "ResourceNotDestroyedFault", targetNamespace = "http://docs.oasis-open.org/wsrf/rl-2")
public class ResourceNotDestroyedFault extends Exception
{
    private ResourceNotDestroyedFaultType faultInfo;

    public ResourceNotDestroyedFault(String message, ResourceNotDestroyedFaultType faultInfo)
    {
        super(message);
        this.faultInfo = faultInfo;
    }

    public ResourceNotDestroyedFault(String message, ResourceNotDestroyedFaultType faultInfo, Throwable cause)
    {
        super(message, cause);
        this.faultInfo = faultInfo;
    }

    public ResourceNotDestroyedFaultType getFaultInfo()
    {
        return faultInfo;
    }
}
