com.gooddata.sdk.service.md.NonUniqueObjException Maven / Gradle / Ivy
/*
* Copyright (C) 2004-2019, GoodData(R) Corporation. All rights reserved.
* This source code is licensed under the BSD-style license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
package com.gooddata.sdk.service.md;
import com.gooddata.sdk.common.GoodDataException;
import com.gooddata.sdk.model.md.Queryable;
import java.util.Collection;
/**
* More than a single obj instance was found
*/
public class NonUniqueObjException extends GoodDataException {
/**
* Construct a new instance of NonUniqueObjException.
*
* @param cls class of metadata object you're searching for
* @param results collection of URIs you have found
* @param the type of results you're searching for
*/
public NonUniqueObjException(Class cls, Collection results) {
super("Expected a single instance of " + cls.getSimpleName().toLowerCase() + " but found " + results);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy