All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mule.module.ws.consumer.SoapFaultException Maven / Gradle / Ivy

/*
 * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */
package org.mule.module.ws.consumer;

import org.mule.api.MessagingException;
import org.mule.api.MuleEvent;
import org.mule.config.i18n.CoreMessages;

import javax.xml.namespace.QName;

import org.w3c.dom.Element;

/**
 * Exception thrown by the Web Services Consumer when processing a SOAP fault.
 * The exception contains the details about the fault.
 */
public class SoapFaultException extends MessagingException
{
    private final QName faultCode;
    private final QName subCode;
    private final Element detail;

    public SoapFaultException(MuleEvent event, QName faultCode, QName subCode, String message, Element detail)
    {
        super(CoreMessages.createStaticMessage(message), event);
        this.faultCode = faultCode;
        this.subCode = subCode;
        this.detail = detail;
    }

    public QName getFaultCode()
    {
        return faultCode;
    }

    public QName getSubCode()
    {
        return subCode;
    }

    public Element getDetail()
    {
        return detail;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy