Exception: FFmpegCore::ExecutionError

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

Overview

Raised when ffmpeg/ffprobe execution fails

Direct Known Subclasses

ProbeError, ScreenshotError, TranscodingError

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, command: nil, exit_status: nil, stdout: nil, stderr: nil)
  @command = command
  @exit_status = exit_status
  @stdout = stdout
  @stderr = stderr
  super(message)
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



12
13
14
# File 'lib/ffmpeg_core/errors.rb', line 12

def command
  @command
end

#exit_statusObject (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

#stderrObject (readonly)

Returns the value of attribute stderr.



12
13
14
# File 'lib/ffmpeg_core/errors.rb', line 12

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



12
13
14
# File 'lib/ffmpeg_core/errors.rb', line 12

def stdout
  @stdout
end