| 123456789101112131415161718192021222324252627282930313233343536 | // Copyright The OpenTelemetry Authors// SPDX-License-Identifier: Apache-2.0#pragma once#if __EXCEPTIONS#  include <new>#endif  // __EXCEPTIONS#include <string>#include "opentelemetry/version.h"OPENTELEMETRY_BEGIN_NAMESPACEnamespace plugin{namespace detail{inline void CopyErrorMessage(const char *source, std::string &destination) noexcept#if __EXCEPTIONStry#endif{  if (source == nullptr)  {    return;  }  destination.assign(source);}#if __EXCEPTIONScatch (const std::bad_alloc &){}#endif}  // namespace detail}  // namespace pluginOPENTELEMETRY_END_NAMESPACE
 |