Exception: Autoselect::TaxonName::ColCreator::CreationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/autoselect/taxon_name/col_creator.rb

Overview

Raised when any name in the creation loop fails validation. Carries the row that triggered the failure for frontend highlighting.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, col_name: nil, col_id: nil) ⇒ CreationError

Returns a new instance of CreationError.



31
32
33
34
35
# File 'lib/autoselect/taxon_name/col_creator.rb', line 31

def initialize(message, col_name: nil, col_id: nil)
  super(message)
  @col_name = col_name
  @col_id = col_id
end

Instance Attribute Details

#col_idObject (readonly)

Returns the value of attribute col_id.



29
30
31
# File 'lib/autoselect/taxon_name/col_creator.rb', line 29

def col_id
  @col_id
end

#col_nameObject (readonly)

Returns the value of attribute col_name.



29
30
31
# File 'lib/autoselect/taxon_name/col_creator.rb', line 29

def col_name
  @col_name
end