Exception: Ace::Review::Errors::CommandTimeoutError

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

Overview

Raised when a subprocess command times out

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, timeout_seconds) ⇒ CommandTimeoutError

Returns a new instance of CommandTimeoutError.



131
132
133
134
135
136
# File 'lib/ace/review/errors.rb', line 131

def initialize(command, timeout_seconds)
  @command = command
  @timeout_seconds = timeout_seconds
  message = "Command '#{command}' timed out after #{timeout_seconds} seconds."
  super(message)
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



129
130
131
# File 'lib/ace/review/errors.rb', line 129

def command
  @command
end

#timeout_secondsObject (readonly)

Returns the value of attribute timeout_seconds.



129
130
131
# File 'lib/ace/review/errors.rb', line 129

def timeout_seconds
  @timeout_seconds
end