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

org.jpmml.model.MissingElementException Maven / Gradle / Ivy

There is a newer version: 1.6.6
Show newest version
/*
 * Copyright (c) 2018 Villu Ruusmann
 */
package org.jpmml.model;

import java.lang.reflect.Field;

import org.dmg.pmml.PMMLObject;

public class MissingElementException extends MissingMarkupException {

	public MissingElementException(String message){
		super(message);
	}

	public MissingElementException(String message, PMMLObject context){
		super(message, context);
	}

	public MissingElementException(PMMLObject object, Field field){
		super(formatMessage(XPathUtil.formatElementOrAttribute(field)), object);
	}

	static
	public String formatMessage(String xPath){
		return "Required element " + xPath + " is not defined";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy