lib/spf/error.rb in spf-0.0.29 vs lib/spf/error.rb in spf-0.0.30

- old
+ new

@@ -31,13 +31,14 @@ # Parser Errors ############################################################################## class NothingToParseError < Error; end # Nothing to parse class SyntaxError < Error # Generic syntax error - attr_accessor :text, :parse_text, :domain - def initialize(message, text=nil, parse_text=nil) + attr_accessor :text, :parse_text, :domain, :hint + def initialize(message, text=nil, parse_text=nil, hint=nil) @text = text @parse_text = parse_text + @hint = hint super(message) end end class InvalidRecordVersionError < SyntaxError; end # Invalid record version