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.



151
152
153
154
# File 'lib/odin/types/errors.rb', line 151

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

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



149
150
151
# File 'lib/odin/types/errors.rb', line 149

def path
  @path
end