Exception: DatasetRecord::DarwinCore::InvalidData

Inherits:
StandardError
  • Object
show all
Defined in:
app/models/dataset_record/darwin_core.rb

Overview

self.abstract_class = true # TODO: No known problems, but commented since ImportDataset::DarwinCore also has it commented. Review.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_data) ⇒ InvalidData

Returns a new instance of InvalidData.



7
8
9
10
# File 'app/models/dataset_record/darwin_core.rb', line 7

def initialize(error_data)
  super("Invalid data")
  self.error_data = error_data
end

Instance Attribute Details

#error_dataObject

Returns the value of attribute error_data.



5
6
7
# File 'app/models/dataset_record/darwin_core.rb', line 5

def error_data
  @error_data
end