/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * Copyright (c) 2008, 2013, Red Hat Inc. or third-party contributors as
 * indicated by the @author tags or express copyright attribution
 * statements applied by the authors.  All third-party contributions are
 * distributed under license by Red Hat Inc.
 *
 * This copyrighted material is made available to anyone wishing to use, modify,
 * copy, or redistribute it subject to the terms and conditions of the GNU
 * Lesser General Public License, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
 * for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this distribution; if not, write to:
 * Free Software Foundation, Inc.
 * 51 Franklin Street, Fifth Floor
 * Boston, MA  02110-1301  USA
 */
package org.hibernate;

Parameter invalid or not found in the query.
Author:Emmanuel Bernard
/** * Parameter invalid or not found in the query. * * @author Emmanuel Bernard */
public class QueryParameterException extends QueryException {
Constructs a QueryParameterException using the supplied exception message.
Params:
  • message – The message explaining the exception condition
/** * Constructs a QueryParameterException using the supplied exception message. * * @param message The message explaining the exception condition */
public QueryParameterException(String message) { super( message ); }
Constructs a QueryParameterException
Params:
  • message – The message explaining the exception condition
  • queryString – The query that led to the exception
  • cause – The underlying cause
/** * Constructs a QueryParameterException * * @param message The message explaining the exception condition * @param queryString The query that led to the exception * @param cause The underlying cause */
public QueryParameterException(String message, String queryString, Exception cause) { super( message, queryString, cause ); } @Override protected QueryException generateQueryException(String queryString) { return new QueryParameterException( super.getOriginalMessage(), queryString, this ); } }