Exception: ChildProcessError Private

Inherits:
RuntimeError
  • Object
show all
Defined in:
exceptions.rb

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Raised when a Utils.safe_fork exits with a non-zero code.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ ChildProcessError

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns a new instance of ChildProcessError.



771
772
773
774
775
# File 'exceptions.rb', line 771

def initialize(status)
  @status = status

  super "Forked child process failed: #{status}"
end

Instance Attribute Details

#statusObject (readonly)

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.



769
770
771
# File 'exceptions.rb', line 769

def status
  @status
end