Lines Matching refs:Result
23 class Result {
25 static Result success() {
26 return Result(true);
28 // Construct a result indicating an error.
29 static Result error(std::string message) {
30 return Result(message);
32 static Result error(const char* format, ...) {
39 return Result(std::string(buffer));
47 explicit Result(bool success) : mSuccess(success) { }
48 explicit Result(std::string message)