Exception: ChupaText::InvalidDataError

Inherits:
Error
  • Object
show all
Defined in:
lib/chupa-text/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.



40
41
42
# File 'lib/chupa-text/error.rb', line 40

def data
  @data
end

#detailObject (readonly)

Returns the value of attribute detail.



40
41
42
# File 'lib/chupa-text/error.rb', line 40

def detail
  @detail
end