Exception: Pdfrb::UnsupportedVersionError

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

Overview

PDF version requested or detected is not supported by Pdfrb.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, version: nil) ⇒ UnsupportedVersionError

Returns a new instance of UnsupportedVersionError.



63
64
65
66
# File 'lib/pdfrb/error.rb', line 63

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

Instance Attribute Details

#versionObject (readonly)

Returns the value of attribute version.



61
62
63
# File 'lib/pdfrb/error.rb', line 61

def version
  @version
end