class ObjectPatch::FailedTestException

An exception that will get raised when a test operation fails after being applied to a document.

@attr [String] path A JSON pointer string representing the location to be

checked.

@attr [Object] value The value that failed the comparison check.

Attributes

path[RW]
value[RW]

Public Class Methods

new(path, value) click to toggle source

Formats the exception message with the relevant information before actually raising the error.

@param [String] path @param [Object] value @return [void]

Calls superclass method
# File lib/object_patch/exceptions.rb, line 45
def initialize(path, value)
  super("Expected #{value} at #{path}")
  @path, @value = path, value
end