Exception: EacRailsRemotes::Errors::TargetExport

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/eac_rails_remotes/errors/target_export.rb

Direct Known Subclasses

TargetAssociationExport

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record) ⇒ TargetExport

Returns a new instance of TargetExport.



8
9
10
11
# File 'lib/eac_rails_remotes/errors/target_export.rb', line 8

def initialize(record)
  super("Export failed (ID: #{record.id}, export message: \"#{record.export_message}\")")
  @record = record
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



6
7
8
# File 'lib/eac_rails_remotes/errors/target_export.rb', line 6

def record
  @record
end