@classmethod
def _from_raw_error(cls, map, error):
    """Construct a :class:`ComponentError` from a raw component error returned from an execute node."""
    return cls(map=map, component=error.component, exception_msg=error.
        exception_msg, node_info=error.node_info, python_info=error.
        python_info, scratch_dir_contents=error.scratch_dir_contents,
        stack_summary=error.stack_summary)
