Searched refs:MakeError (Results 1 – 4 of 4) sorted by relevance
53 static ErrorOr<T> MakeError(const std::string& message) { in MakeError() function67 inline ErrorOr<T> MakeError(const std::string& message) { in MakeError() function68 return ErrorOr<T>::MakeError(message); in MakeError()
43 return MakeError<T>(error.error()); in JsonStringToMessage()
51 return MakeError<std::string>(status.error_message().as_string()); in MessageToJsonString()64 return MakeError<std::monostate>(status.error_message().as_string()); in JsonStringToMessage()67 return MakeError<std::monostate>("Fail to parse."); in JsonStringToMessage()
214 return MakeError<std::string>(res.error()); in FormatJson()