Exception: Roadie::ProvidersFailed

Inherits:
CssNotFound show all
Defined in:
lib/roadie/errors.rb

Instance Attribute Summary collapse

Attributes inherited from CssNotFound

#css_name, #extra_message, #provider

Instance Method Summary collapse

Constructor Details

#initialize(css_name:, providers:, errors:) ⇒ ProvidersFailed

Returns a new instance of ProvidersFailed.



74
75
76
77
78
79
80
81
# File 'lib/roadie/errors.rb', line 74

def initialize(css_name:, providers:, errors:)
  @errors = errors
  super(
    css_name: css_name,
    message: "All providers failed",
    provider: providers
  )
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



72
73
74
# File 'lib/roadie/errors.rb', line 72

def errors
  @errors
end