Exception: SPF::SyntaxError
Overview
Nothing to parse
Direct Known Subclasses
InvalidMacroStringError, InvalidModError, InvalidRecordVersionError, InvalidScopeError, InvalidTermError, JunkInRecordError, JunkInTermError, TermDomainSpecExpectedError, TermIPv4AddressExpectedError, TermIPv4PrefixLengthExpected, TermIPv6AddressExpected, TermIPv6PrefixLengthExpected
Instance Attribute Summary collapse
-
#domain ⇒ Object
Generic syntax error.
-
#hint ⇒ Object
Generic syntax error.
-
#parse_text ⇒ Object
Generic syntax error.
-
#text ⇒ Object
Generic syntax error.
Instance Method Summary collapse
-
#initialize(message, text = nil, parse_text = nil, hint = nil) ⇒ SyntaxError
constructor
A new instance of SyntaxError.
Constructor Details
#initialize(message, text = nil, parse_text = nil, hint = nil) ⇒ SyntaxError
Returns a new instance of SyntaxError.
39 40 41 42 43 44 |
# File 'lib/spf/error.rb', line 39 def initialize(, text=nil, parse_text=nil, hint=nil) @text = text @parse_text = parse_text @hint = hint super() end |
Instance Attribute Details
#domain ⇒ Object
Generic syntax error
38 39 40 |
# File 'lib/spf/error.rb', line 38 def domain @domain end |
#hint ⇒ Object
Generic syntax error
38 39 40 |
# File 'lib/spf/error.rb', line 38 def hint @hint end |
#parse_text ⇒ Object
Generic syntax error
38 39 40 |
# File 'lib/spf/error.rb', line 38 def parse_text @parse_text end |
#text ⇒ Object
Generic syntax error
38 39 40 |
# File 'lib/spf/error.rb', line 38 def text @text end |