Exception: Mail::Field::ParseError
- Inherits:
-
FieldError
- Object
- StandardError
- FieldError
- Mail::Field::ParseError
- Defined in:
- lib/mail/field.rb
Overview
Raised when a parsing error has occurred (ie, a StructuredField has tried to parse a field that is invalid or improperly written)
Instance Attribute Summary collapse
-
#element ⇒ Object
:nodoc:.
-
#reason ⇒ Object
:nodoc:.
-
#value ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#initialize(element, value, reason) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(element, value, reason) ⇒ ParseError
Returns a new instance of ParseError.
79 80 81 82 83 84 |
# File 'lib/mail/field.rb', line 79 def initialize(element, value, reason) @element = element @value = value @reason = reason super("#{element} can not parse |#{value}|\nReason was: #{reason}") end |