/**
 * Copyright © 2008-2009 DRIVER PROJECT (ICM UW)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package eu.dnetlib.resultset.impl;

import javax.xml.namespace.QName;

/**
 * Index Result Set fault message.
 * @author Marek Horst
 * @version 0.01
 *
 */
public class IndexResultSetFaultMessage extends Exception {

	public static final String ERROR_UNSUPPORTED	= "ERROR_UNSUPPORTED";
	public static final String ERROR_INVALID_RS		= "ERROR_INVALID_RS";
	public static final String ERROR_UNKNOWN		= "ERROR_UNKNOWN";
	public static final String ERROR_INVALID_PARAM	= "ERROR_INVALID_PARAM";
	
	public static final String RESULTSET_QNAME_PREFIX	= "http://www.driver.org/wsdl/ResultSet.wsdl";
		
    /**
	 * 
	 */
	private static final long serialVersionUID = -2145697370065748543L;

    public IndexResultSetFaultMessage(String faultInfo, String faultCode) {
    	super(faultInfo);
//    	currently faultCode is ommited as the cxf dependancy was dropped
//    	super(faultInfo, new QName(faultCode));
    }

    public IndexResultSetFaultMessage(String faultInfo, Throwable t, String faultCode) {
    	super(faultInfo, t);
//    	currently faultCode is ommited as the cxf dependancy was dropped
//    	super(faultInfo, t, new QName(faultCode));
    }

    public static QName getFaultName() {
        return new QName(RESULTSET_QNAME_PREFIX, "partFaultMessage");
    }

}
