Exception: FFMPEG::TranscodingError

Inherits:
Error
  • Object
show all
Defined in:
lib/ffmpeg/errors.rb

Overview

Raised when transcoding fails

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, command: nil, output: nil, exit_code: nil) ⇒ TranscodingError

Returns a new instance of TranscodingError.



41
42
43
44
45
46
# File 'lib/ffmpeg/errors.rb', line 41

def initialize(message, command: nil, output: nil, exit_code: nil)
  @command = command
  @output = output
  @exit_code = exit_code
  super(message)
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



39
40
41
# File 'lib/ffmpeg/errors.rb', line 39

def command
  @command
end

#exit_codeObject (readonly)

Returns the value of attribute exit_code.



39
40
41
# File 'lib/ffmpeg/errors.rb', line 39

def exit_code
  @exit_code
end

#outputObject (readonly)

Returns the value of attribute output.



39
40
41
# File 'lib/ffmpeg/errors.rb', line 39

def output
  @output
end