Exception: FFMPEG::CommandTimeout

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

Overview

Raised when a command times out

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, timeout) ⇒ CommandTimeout



53
54
55
56
57
# File 'lib/ffmpeg/errors.rb', line 53

def initialize(command, timeout)
  @command = command
  @timeout = timeout
  super("Command timed out after #{timeout}s: #{command}")
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



51
52
53
# File 'lib/ffmpeg/errors.rb', line 51

def command
  @command
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



51
52
53
# File 'lib/ffmpeg/errors.rb', line 51

def timeout
  @timeout
end