Exception: MundoPepino::ResourceNotFound

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/mundo_pepino/base.rb

Overview

Exceptions

Instance Method Summary collapse

Constructor Details

#initialize(resource_info = nil) ⇒ ResourceNotFound

Returns a new instance of ResourceNotFound.



4
5
6
# File 'lib/mundo_pepino/base.rb', line 4

def initialize(resource_info=nil)
  @resource_info = resource_info && " (#{resource_info})"
end

Instance Method Details

#messageObject



7
8
9
# File 'lib/mundo_pepino/base.rb', line 7

def message
  "Resource not found#{@resource_info}"
end