Exception: Async::Container::Threaded::Child::Exit
- Inherits:
-
Exception
- Object
- Exception
- Async::Container::Threaded::Child::Exit
- Defined in:
- lib/async/container/threaded.rb
Overview
Used to propagate the exit status of a child process invoked by Instance#exec.
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
The process exit status.
Instance Method Summary collapse
-
#error ⇒ Object
The process exit status if it was an error.
-
#initialize(status) ⇒ Exit
constructor
Initialize the exit status.
Constructor Details
#initialize(status) ⇒ Exit
Initialize the exit status.
25 26 27 |
# File 'lib/async/container/threaded.rb', line 25 def initialize(status) @status = status end |
Instance Attribute Details
#status ⇒ Object (readonly)
The process exit status.
31 32 33 |
# File 'lib/async/container/threaded.rb', line 31 def status @status end |
Instance Method Details
#error ⇒ Object
The process exit status if it was an error.
35 36 37 38 39 |
# File 'lib/async/container/threaded.rb', line 35 def error unless status.success? status end end |