Exception: HexaPDF::EncryptionError

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

Overview

Raised when there are problems while encrypting or decrypting a document.

Direct Known Subclasses

UnsupportedEncryptionError

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pdf_objectObject

The PDF object that caused the problem. May not be set in case of general problems unrelated to a specific PDF object.



74
75
76
# File 'lib/hexapdf/error.rb', line 74

def pdf_object
  @pdf_object
end

Instance Method Details

#messageObject

:nodoc:



76
77
78
# File 'lib/hexapdf/error.rb', line 76

def message # :nodoc:
  pdf_object ? "Object (#{pdf_object.oid},#{pdf_object.gen}): #{super}" : super
end