Exception: SPF::SyntaxError

Inherits:
Error
  • Object
show all
Defined in:
lib/spf/error.rb

Overview

Nothing to parse

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, text=nil, parse_text=nil, hint=nil)
  @text = text
  @parse_text = parse_text
  @hint = hint
  super(message)
end

Instance Attribute Details

#domainObject

Generic syntax error



38
39
40
# File 'lib/spf/error.rb', line 38

def domain
  @domain
end

#hintObject

Generic syntax error



38
39
40
# File 'lib/spf/error.rb', line 38

def hint
  @hint
end

#parse_textObject

Generic syntax error



38
39
40
# File 'lib/spf/error.rb', line 38

def parse_text
  @parse_text
end

#textObject

Generic syntax error



38
39
40
# File 'lib/spf/error.rb', line 38

def text
  @text
end