Exception: PDF::Core::Reference::CannotAttachStream Private

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pdf/core/reference.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

In PDF only dict object can have a stream attached. This exception indicates someone tried to add a stream to another kind of object.

Instance Method Summary collapse

Constructor Details

#initialize(message = 'Cannot attach stream to a non-dictionary object') ⇒ CannotAttachStream

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of CannotAttachStream.

Parameters:

  • message (String) (defaults to: 'Cannot attach stream to a non-dictionary object')

    Error message

Source Code
lib/pdf/core/reference.rb, line 35
35
def initialize(message = 'Cannot attach stream to a non-dictionary object')
36
  super
37
end