<commit_before>package org.springframework.orm.hibernate;

import net.sf.hibernate.QueryException;

import org.springframework.dao.InvalidDataAccessResourceUsageException;

/**
 * Exception thrown on invalid HQL query syntax.
 * @author <NAME>
 * @since 13.10.2003
 */
public class HibernateQueryException extends InvalidDataAccessResourceUsageException {

	public HibernateQueryException(QueryException ex) {
		super(ex.getMessage(), ex);
	}

	/**
	 * Return the HQL query string that was invalid.
	 */
	public String getQueryString() {
		return ((QueryException) getRootCause()).getQueryString();
	}

}<commit_msg>reworked NestedRuntimeException and NestedCheckedException to be compatible with J2SE 1.4's nested exception handling<commit_after>package org.springframework.orm.hibernate;

import net.sf.hibernate.QueryException;

import org.springframework.dao.InvalidDataAccessResourceUsageException;

/**
 * Exception thrown on invalid HQL query syntax.
 * @author <NAME>
 * @since 13.10.2003
 */
public class HibernateQueryException extends InvalidDataAccessResourceUsageException {

	public HibernateQueryException(QueryException ex) {
		super(ex.getMessage(), ex);
	}

	/**
	 * Return the HQL query string that was invalid.
	 */
	public String getQueryString() {
		return ((QueryException) getCause()).getQueryString();
	}

}
{'fraction_non_alphanumeric': 0.09759759759759759, 'fraction_numerical': 0.014264264264264264, 'mean_word_length': 5.470873786407767, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5044502', 'n_tokens_mistral': 395, 'n_tokens_neox': 356, 'n_words': 94}