Exception: Pupu::AssetNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pupu/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ AssetNotFound

Returns a new instance of AssetNotFound.



21
22
23
24
# File 'lib/pupu/exceptions.rb', line 21

def initialize(path)
  @path = path
  @message = "File #{@path} doesn't exist."
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



20
21
22
# File 'lib/pupu/exceptions.rb', line 20

def message
  @message
end

#pathObject

Returns the value of attribute path.



20
21
22
# File 'lib/pupu/exceptions.rb', line 20

def path
  @path
end