Exception: Minitest::ForkExecutor::UnmarshallableError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Minitest::ForkExecutor::UnmarshallableError
- Defined in:
- lib/minitest/fork_executor.rb
Overview
An always marshallable exception class that can be derived from another (potentially non-marshallable exception). It’s actually not intended to be raised but merely instantiated when passing Minitest failures from the runner to the reporter.
Instance Method Summary collapse
-
#initialize(exc) ⇒ UnmarshallableError
constructor
A new instance of UnmarshallableError.
Constructor Details
#initialize(exc) ⇒ UnmarshallableError
Returns a new instance of UnmarshallableError.
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/minitest/fork_executor.rb', line 139 def initialize(exc) super(<<MESSAGE) An unmarshallable error has occured. Below is its best-effort representation. In order to receive the error itself, please disable Minitest::ForkExecutor. Error class: #{exc.class.name} Error message: #{exc.} Attributes: #{exc.instance_variables.map do |name| " #{name} = #{exc.instance_variable_get(name).inspect}" end.join("\n")} END OF ERROR MESSAGE (ORIGINAL BACKTRACE MAY FOLLOW) MESSAGE set_backtrace(exc.backtrace) end |