Exception: ITunes::Store::Transporter::ExecutionError

Inherits:
TransporterError
  • Object
show all
Defined in:
lib/itunes/store/transporter/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors, exitstatus = nil) ⇒ ExecutionError

Returns a new instance of ExecutionError.



13
14
15
16
17
# File 'lib/itunes/store/transporter/errors.rb', line 13

def initialize(errors, exitstatus = nil)
  @errors = [ errors ].flatten
  @exitstatus = exitstatus
  super @errors.map { |e| e.to_s }.join ", "
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



10
11
12
# File 'lib/itunes/store/transporter/errors.rb', line 10

def errors
  @errors
end

#exitstatusObject (readonly)

Returns the value of attribute exitstatus.



11
12
13
# File 'lib/itunes/store/transporter/errors.rb', line 11

def exitstatus
  @exitstatus
end