Exception: ChupaText::InvalidDataError
- Defined in:
- lib/chupa-text/error.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
Instance Method Summary collapse
-
#initialize(data, detail) ⇒ InvalidDataError
constructor
A new instance of InvalidDataError.
Constructor Details
#initialize(data, detail) ⇒ InvalidDataError
Returns a new instance of InvalidDataError.
41 42 43 44 45 |
# File 'lib/chupa-text/error.rb', line 41 def initialize(data, detail) @data = data @detail = detail super("Invalid data: <#{data.uri}>(#{data.mime_type}): <#{detail}>") end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
40 41 42 |
# File 'lib/chupa-text/error.rb', line 40 def data @data end |
#detail ⇒ Object (readonly)
Returns the value of attribute detail.
40 41 42 |
# File 'lib/chupa-text/error.rb', line 40 def detail @detail end |