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.



107
108
109
110
# File 'lib/mail/field.rb', line 107

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