Exception: Mail::Field::IncompleteParseError

Inherits:
ParseError show all
Defined in:
lib/mail/field.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from ParseError

#element, #reason, #value

Instance Method Summary collapse

Constructor Details

#initialize(element, original_text, unparsed_index) ⇒ IncompleteParseError

Returns a new instance of IncompleteParseError.



135
136
137
138
# File 'lib/mail/field.rb', line 135

def initialize(element, original_text, unparsed_index)
  parsed_text = to_utf8(original_text[0...unparsed_index])
  super element, original_text, "Only able to parse up to #{parsed_text.inspect}"
end