Exception: FFmpegCore::ExecutionError
- Defined in:
- lib/ffmpeg_core/errors.rb
Overview
Raised when ffmpeg/ffprobe execution fails
Direct Known Subclasses
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#exit_status ⇒ Object
readonly
Returns the value of attribute exit_status.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(message, command: nil, exit_status: nil, stdout: nil, stderr: nil) ⇒ ExecutionError
constructor
A new instance of ExecutionError.
Constructor Details
#initialize(message, command: nil, exit_status: nil, stdout: nil, stderr: nil) ⇒ ExecutionError
Returns a new instance of ExecutionError.
14 15 16 17 18 19 20 |
# File 'lib/ffmpeg_core/errors.rb', line 14 def initialize(, command: nil, exit_status: nil, stdout: nil, stderr: nil) @command = command @exit_status = exit_status @stdout = stdout @stderr = stderr super() end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
12 13 14 |
# File 'lib/ffmpeg_core/errors.rb', line 12 def command @command end |
#exit_status ⇒ Object (readonly)
Returns the value of attribute exit_status.
12 13 14 |
# File 'lib/ffmpeg_core/errors.rb', line 12 def exit_status @exit_status end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
12 13 14 |
# File 'lib/ffmpeg_core/errors.rb', line 12 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
12 13 14 |
# File 'lib/ffmpeg_core/errors.rb', line 12 def stdout @stdout end |