Exception: Phantom::ForkError

Inherits:
Exception
  • Object
show all
Defined in:
lib/phantom/fork_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, pid_file)
  super(message)
  @pid_file = pid_file
  @pid = File.read @pid_file
end

Instance Attribute Details

#pidObject (readonly)

Returns the value of attribute pid.



3
4
5
# File 'lib/phantom/fork_error.rb', line 3

def pid
  @pid
end

#pid_fileObject (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