package gov.va.med.edp.rpc;

import gov.va.med.vistalink.adapter.record.VistaLinkFaultException;
import org.springframework.dao.PermissionDeniedDataAccessException;

public class VistaLinkRpcPermissionDeniedException extends PermissionDeniedDataAccessException {

    private VistaLinkFaultException fault;

    public VistaLinkRpcPermissionDeniedException(VistaLinkFaultException fault) {
        super(fault.getMessage(), fault);
        this.fault = fault;
    }

    public String getErrorCode() {
        return fault.getErrorCode();
    }

    public String getErrorMessage() {
        return fault.getErrorMessage();
    }

    public String getErrorType() {
        return fault.getErrorType();
    }

    public String getFaultActor() {
        return fault.getFaultActor();
    }

    public String getFaultCode() {
        return fault.getFaultCode();
    }

    public String getFaultString() {
        return fault.getFaultString();
    }
}
