Exception: FFMPEG::CommandTimeout
- Defined in:
- lib/ffmpeg/errors.rb
Overview
Raised when a command times out
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(command, timeout) ⇒ CommandTimeout
constructor
A new instance of CommandTimeout.
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
#command ⇒ Object (readonly)
Returns the value of attribute command.
51 52 53 |
# File 'lib/ffmpeg/errors.rb', line 51 def command @command end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
51 52 53 |
# File 'lib/ffmpeg/errors.rb', line 51 def timeout @timeout end |