summaryrefslogtreecommitdiff
path: root/lib/psych/syntax_error.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/psych/syntax_error.rb')
-rw-r--r--lib/psych/syntax_error.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/psych/syntax_error.rb b/lib/psych/syntax_error.rb
index f79743d..e200ef0 100644
--- a/lib/psych/syntax_error.rb
+++ b/lib/psych/syntax_error.rb
@@ -1,5 +1,7 @@
+require 'psych/exception'
+
module Psych
- class SyntaxError < ::SyntaxError
+ class SyntaxError < Psych::Exception
attr_reader :file, :line, :column, :offset, :problem, :context
def initialize file, line, col, offset, problem, context