Exception: Phantom::ForkError
- Inherits:
-
Exception
- Object
- Exception
- Phantom::ForkError
- Defined in:
- lib/phantom/fork_error.rb
Instance Attribute Summary collapse
-
#pid ⇒ Object
readonly
Returns the value of attribute pid.
-
#pid_file ⇒ Object
readonly
Returns the value of attribute pid_file.
Instance Method Summary collapse
-
#initialize(message, pid_file) ⇒ ForkError
constructor
A new instance of ForkError.
Constructor Details
#initialize(message, pid_file) ⇒ ForkError
Returns a new instance of ForkError.
5 6 7 8 9 |
# File 'lib/phantom/fork_error.rb', line 5 def initialize(, pid_file) super() @pid_file = pid_file @pid = File.read @pid_file end |
Instance Attribute Details
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
3 4 5 |
# File 'lib/phantom/fork_error.rb', line 3 def pid @pid end |
#pid_file ⇒ Object (readonly)
Returns the value of attribute pid_file.
3 4 5 |
# File 'lib/phantom/fork_error.rb', line 3 def pid_file @pid_file end |