public static function reflectionFailure($document, \ReflectionException $previousException) { return new self('An error occurred in ' . $document, 0, $previousException); }