Exception: FFMPEG::TranscodingError
- Defined in:
- lib/ffmpeg/errors.rb
Overview
Raised when transcoding fails
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(message, command: nil, output: nil, exit_code: nil) ⇒ TranscodingError
constructor
A new instance of TranscodingError.
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(, command: nil, output: nil, exit_code: nil) @command = command @output = output @exit_code = exit_code super() end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
39 40 41 |
# File 'lib/ffmpeg/errors.rb', line 39 def command @command end |
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
39 40 41 |
# File 'lib/ffmpeg/errors.rb', line 39 def exit_code @exit_code end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
39 40 41 |
# File 'lib/ffmpeg/errors.rb', line 39 def output @output end |