Searched refs:MakeError (Results 1 – 4 of 4) sorted by relevance
52 static ErrorOr<T> MakeError(const std::string& message) { in MakeError() function66 inline ErrorOr<T> MakeError(const std::string& message) { in MakeError() function67 return ErrorOr<T>::MakeError(message); in MakeError()
42 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()
204 return MakeError<std::string>(res.error()); in FormatJson()