# File lib/crack/json.rb, line 11 def self.parser_exceptions @parser_exceptions ||= begin exceptions = [ArgumentError] if const_defined?(:Psych) if Psych.const_defined?(:SyntaxError) exceptions << Psych::SyntaxError end end exceptions end end