Exception: Async::Container::Thread::Exit
- Inherits:
-
Exception
- Object
- Exception
- Async::Container::Thread::Exit
- Defined in:
- lib/async/container/thread.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.
19 20 21 |
# File 'lib/async/container/thread.rb', line 19 def initialize(status) @status = status end |
Instance Attribute Details
#status ⇒ Object (readonly)
The process exit status.
25 26 27 |
# File 'lib/async/container/thread.rb', line 25 def status @status end |
Instance Method Details
#error ⇒ Object
The process exit status if it was an error.
29 30 31 32 33 |
# File 'lib/async/container/thread.rb', line 29 def error unless status.success? status end end |