From ce08bdb7a856c87064ecb4f05ee463afbbd8707d Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Thu, 25 Apr 2013 10:01:09 -0500 Subject: [PATCH] HHH-8159 - Apply fixups indicated by analysis tools --- .../org/hibernate/hql/internal/ast/tree/JavaConstantNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/JavaConstantNode.java b/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/JavaConstantNode.java index 82fb6ba00a..4d2af46998 100644 --- a/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/JavaConstantNode.java +++ b/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/JavaConstantNode.java @@ -84,7 +84,7 @@ public class JavaConstantNode extends Node implements ExpectedTypeAwareNode, Ses Dialect dialect = factory.getDialect(); return literalType.objectToSQLString( constantValue, dialect ); } - catch ( Throwable t ) { + catch ( Exception t ) { throw new QueryException( QueryTranslator.ERROR_CANNOT_FORMAT_LITERAL + constantExpression, t ); } }