Exception: Yapo::Helpers::CustomErrors::TimeoutError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Yapo::Helpers::CustomErrors::TimeoutError
- Defined in:
- lib/yapo/helpers/custom_errors.rb
Instance Attribute Summary collapse
-
#err ⇒ Object
readonly
Returns the value of attribute err.
-
#out ⇒ Object
readonly
Returns the value of attribute out.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(command, timeout, result, *args) ⇒ TimeoutError
constructor
A new instance of TimeoutError.
- #message ⇒ Object
Constructor Details
#initialize(command, timeout, result, *args) ⇒ TimeoutError
Returns a new instance of TimeoutError.
68 69 70 71 72 73 74 75 |
# File 'lib/yapo/helpers/custom_errors.rb', line 68 def initialize(command, timeout, result, *args) @command = command @params = *args @timeout = timeout @out = result.out @err = result.err super() end |
Instance Attribute Details
#err ⇒ Object (readonly)
Returns the value of attribute err.
66 67 68 |
# File 'lib/yapo/helpers/custom_errors.rb', line 66 def err @err end |
#out ⇒ Object (readonly)
Returns the value of attribute out.
66 67 68 |
# File 'lib/yapo/helpers/custom_errors.rb', line 66 def out @out end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
66 67 68 |
# File 'lib/yapo/helpers/custom_errors.rb', line 66 def params @params end |
Instance Method Details
#message ⇒ Object
77 78 79 80 81 82 |
# File 'lib/yapo/helpers/custom_errors.rb', line 77 def "Running \"#{@command}\" timed out after #{@timeout} seconds.\n" \ " params: #{@params}\n" \ " std out: #{@out}\n" \ " std err: #{@err}\n" end |