Exception: Roadie::CssNotFound

Inherits:
Error
  • Object
show all
Defined in:
lib/roadie/errors.rb

Overview

Raised when an asset provider cannot find a stylesheet.

If you are writing your own asset provider, make sure to raise this in the #find_stylesheet! method.

See Also:

Direct Known Subclasses

ProvidersFailed

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(css_name:, message: nil, provider: nil) ⇒ CssNotFound

Returns a new instance of CssNotFound.



48
49
50
51
52
53
# File 'lib/roadie/errors.rb', line 48

def initialize(css_name:, message: nil, provider: nil)
  @css_name = css_name
  @provider = provider
  @extra_message = message
  super(build_message)
end

Instance Attribute Details

#css_nameObject (readonly)

The name of the stylesheet that cannot be found



40
41
42
# File 'lib/roadie/errors.rb', line 40

def css_name
  @css_name
end

#extra_messageObject (readonly)

Extra message



46
47
48
# File 'lib/roadie/errors.rb', line 46

def extra_message
  @extra_message
end

#providerObject (readonly)

Provider used when finding



43
44
45
# File 'lib/roadie/errors.rb', line 43

def provider
  @provider
end