Exception: Dscf::Marketplace::Retailer::Registration::InvalidInput

Inherits:
StandardError
  • Object
show all
Defined in:
app/models/dscf/marketplace/retailer/registration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*errors) ⇒ InvalidInput

Returns a new instance of InvalidInput.



10
11
12
13
# File 'app/models/dscf/marketplace/retailer/registration.rb', line 10

def initialize(*errors)
  @errors = errors.flatten
  super(@errors.join(", "))
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



8
9
10
# File 'app/models/dscf/marketplace/retailer/registration.rb', line 8

def errors
  @errors
end