diff --git a/gherkin/ruby/lib/gherkin/errors.rb b/gherkin/ruby/lib/gherkin/errors.rb
index <HASH>..<HASH> 100644
--- a/gherkin/ruby/lib/gherkin/errors.rb
+++ b/gherkin/ruby/lib/gherkin/errors.rb
@@ -1,6 +1,6 @@
 module Gherkin
   class ParserError < StandardError; end
-  class AstNodeNotLocatedException < Exception; end
+  class AstNodeNotLocatedException < StandardError; end
   class DoubleIterationException < StandardError; end
 
   class ParserException < ParserError
AstNodeNotLocatedException now inherits from StandardError