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

org.hisrc.jsonix.configuration.exception.AmbiguousPackageSchemaIdException Maven / Gradle / Ivy

There is a newer version: 2.3.9
Show newest version
package org.hisrc.jsonix.configuration.exception;

import java.text.MessageFormat;
import java.util.Arrays;

import org.apache.commons.lang3.Validate;

public class AmbiguousPackageSchemaIdException extends ConfigurationException {

	private static final long serialVersionUID = 277619834810758946L;
	private final String packageName;
	private final String[] schemaIds;

	public AmbiguousPackageSchemaIdException(String packageName,
			String... schemaIds) {
		super(MessageFormat.format(
				"Package [{0}] is mapped using different schema ids [{1}].",
				Validate.notNull(packageName),
				Arrays.asList(Validate.noNullElements(schemaIds)).toString()));
		this.packageName = packageName;
		this.schemaIds = schemaIds;
	}

	public String getPackageName() {
		return packageName;
	}

	public String[] getSchemaIds() {
		return schemaIds;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy