Exception: Blumquist::Errors::InvalidPointer

Inherits:
Blumquist::Error show all
Defined in:
lib/blumquist/errors/invalid_pointer.rb

Instance Method Summary collapse

Constructor Details

#initialize(pointer:, document:) ⇒ InvalidPointer

Returns a new instance of InvalidPointer.



4
5
6
7
8
9
10
11
# File 'lib/blumquist/errors/invalid_pointer.rb', line 4

def initialize(pointer:, document:)
    msg = %{
  Could not find pointer '#{pointer}' in the given document:\n
  #{JSON.pretty_generate(document)}
    }

    super(msg)
end