Exception: IiifPrint::WorkNotConfiguredToSplitFileSetError

Inherits:
IiifPrintError
  • Object
show all
Defined in:
lib/iiif_print/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(file_set:, work:) ⇒ WorkNotConfiguredToSplitFileSetError

Returns a new instance of WorkNotConfiguredToSplitFileSetError.



14
15
16
17
18
19
# File 'lib/iiif_print/errors.rb', line 14

def initialize(file_set:, work:)
  message = "Expected that we would be splitting #{file_set.class} ID=#{file_set&.id} #to_param=#{file_set&.to_param} " \
            "for work #{work.class} ID=#{work&.id} #to_param=#{work&.to_param}.  " \
            "However it was not configured for PDF splitting."
  super(message)
end