Uploaded image for project: 'Hibernate ORM'
  1. Hibernate ORM
  2. HHH-11568

Throw QueryException rather than antlr-specific exceptions when query parsing fails.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.8
    • Fix Version/s: 5.2.9
    • Component/s: hibernate-core
    • Labels:
      None
    • Last commented by a user?:
      true

      Description

      Take the following query:

      session.createQuery( "bogus" );
      

      This causes an IllegalArguementException that bubbles up an antlr-exception. The antlr-exception should likely be wrapped in a QueryException.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                crancran Chris Cranford
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: