Exception: Pdfrb::ObjectReferenceError

Inherits:
Error
  • Object
show all
Defined in:
lib/pdfrb/error.rb

Overview

An indirect reference could not be resolved (dangling pointer, wrong generation, free list, corrupt xref entry).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, oid: nil, gen: nil) ⇒ ObjectReferenceError

Returns a new instance of ObjectReferenceError.



74
75
76
77
78
# File 'lib/pdfrb/error.rb', line 74

def initialize(message, oid: nil, gen: nil)
  @oid = oid
  @gen = gen
  super(message)
end

Instance Attribute Details

#genObject (readonly)

Returns the value of attribute gen.



72
73
74
# File 'lib/pdfrb/error.rb', line 72

def gen
  @gen
end

#oidObject (readonly)

Returns the value of attribute oid.



72
73
74
# File 'lib/pdfrb/error.rb', line 72

def oid
  @oid
end