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

com.sap.cds.reflect.CdsDefinitionNotFoundException Maven / Gradle / Ivy

There is a newer version: 3.8.0
Show newest version
/*******************************************************************
 * © 2019 SAP SE or an SAP affiliate company. All rights reserved. *
 *******************************************************************/
package com.sap.cds.reflect;

import java.io.Serial;

/**
 * Indicates a missing definition {@link CdsDefinition} in CDS model.
 */
public class CdsDefinitionNotFoundException extends CdsReflectiveOperationException {

	@Serial
	private static final long serialVersionUID = 1L;
	private final String qualifiedName;
	private final CdsKind kind;

	public CdsDefinitionNotFoundException(CdsKind kind, String qualifiedName) {
		super("Cannot find %s '%s'".formatted(kind, qualifiedName));
		this.qualifiedName = qualifiedName;
		this.kind = kind;
	}

	/**
	 * Get qualified name of the definition
	 * 
	 * @return qualified name of the definition
	 */
	public String getQualifiedName() {
		return qualifiedName;
	}

	/**
	 * Get the definition kind
	 * 
	 * @return definition kind {@link CdsKind}
	 */
	public CdsKind getKind() {
		return kind;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy