Exception: Odin::Errors::PatchError

Inherits:
OdinError
  • Object
show all
Defined in:
lib/odin/types/errors.rb

Instance Attribute Summary collapse

Attributes inherited from OdinError

#code

Instance Method Summary collapse

Constructor Details

#initialize(message, path) ⇒ PatchError

Returns a new instance of PatchError.



143
144
145
146
# File 'lib/odin/types/errors.rb', line 143

def initialize(message, path)
  @path = path
  super("PATCH", "#{message} at '#{path}'")
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



141
142
143
# File 'lib/odin/types/errors.rb', line 141

def path
  @path
end