| 149 | template <typename T, |
| 150 | std::enable_if_t<HasSecret<T>::value, T>* = nullptr> |
| 151 | inline std::string ThriftDebugStringNoThrow(const T& t) { |
| 152 | static_assert(AlwaysFalse<T>::value, |
| 153 | "Don't use ThriftDebugStringNoThrow() to output this object. " |
| 154 | "Use RedactedDebugStringNoThrow() instead."); |
| 155 | return ""; |
| 156 | } |
| 157 | |
| 158 | /// This method is a wrapper over Thrift's ThriftDebugString. It catches any exception |
| 159 | /// that might be thrown by the underlying Thrift method. Typically, we use this method |
no test coverage detected