Exception: ChildProcessError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ChildProcessError
- Defined in:
- exceptions.rb
Overview
Raised when a child process sends us an exception over its error pipe.
Instance Attribute Summary collapse
-
#inner ⇒ Object
readonly
Returns the value of attribute inner.
-
#inner_class ⇒ Object
readonly
Returns the value of attribute inner_class.
Instance Method Summary collapse
-
#initialize(inner) ⇒ ChildProcessError
constructor
A new instance of ChildProcessError.
Constructor Details
#initialize(inner) ⇒ ChildProcessError
Returns a new instance of ChildProcessError.
763 764 765 766 767 768 769 770 771 772 773 774 |
# File 'exceptions.rb', line 763 def initialize(inner) @inner = inner @inner_class = Object.const_get inner["json_class"] super <<~EOS An exception occurred within a child process: #{inner_class}: #{inner["m"]} EOS # Clobber our real (but irrelevant) backtrace with that of the inner exception. set_backtrace inner["b"] end |
Instance Attribute Details
#inner ⇒ Object (readonly)
Returns the value of attribute inner.
761 762 763 |
# File 'exceptions.rb', line 761 def inner @inner end |
#inner_class ⇒ Object (readonly)
Returns the value of attribute inner_class.
761 762 763 |
# File 'exceptions.rb', line 761 def inner_class @inner_class end |