Sha256: cf24febafb150c74bde26396e0cbed11b9b514de6260ba17b04a98c5437f2153

Contents?: true

Size: 929 Bytes

Versions: 2

Compression:

Stored size: 929 Bytes

Contents

module Abrizer

  # This error is raised if Abrizer::ReadAdaptations is unable to determine
  # the adaptations that have or will be created for a given mezzanine file.
  class ReadAdaptationsError < StandardError
    def initialize
      msg = "Unable to read adaptations. Either inlude the path to a master file or an identifier. If passing just the identifier you must have created an adaptations.json file to read in or as a final fallback have already created a VP9 derivative."
      super(msg)
    end
  end

  class FfprobeError < StandardError
    def initialize
      msg = "Unable to find file to run ffprobe on or unable to read in ffprobe.json file."
      super(msg)
    end
  end

  class Mp4AdaptationNotFoundError < StandardError
    def initialize
      msg = "The fragmented adaptation used to create the progressive MP4 access derivative was not found. You must run `process` before this."
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
abrizer-0.6.0 lib/abrizer/errors.rb
abrizer-0.5.0 lib/abrizer/errors.rb