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

org.hibernate.query.sqm.UnknownEntityException Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha3
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later
 * See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
 */
package org.hibernate.query.sqm;

/**
 * Indicates we were not able to resolve a given "path structure" as an entity name.
 * 

* NOTE : JPA generally requires this to be reported as the far less useful * IllegalArgumentException. * todo : account for this in the "exception conversion" handling * * @author Steve Ebersole */ public class UnknownEntityException extends SemanticException { private final String entityName; public UnknownEntityException(String entityName) { this( "Unable to resolve [" + entityName + "] as entity", entityName ); } public UnknownEntityException(String message, String entityName) { super( message ); this.entityName = entityName; } public String getEntityName() { return entityName; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy