chromium/third_party/mediapipe/src/mediapipe/framework/deps/status_builder.h

// Copyright 2019 The MediaPipe Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef MEDIAPIPE_DEPS_STATUS_BUILDER_H_
#define MEDIAPIPE_DEPS_STATUS_BUILDER_H_

#include <memory>
#include <sstream>
#include <utility>

#include "absl/base/attributes.h"
#include "absl/memory/memory.h"
#include "absl/status/status.h"
#include "absl/strings/string_view.h"
#include "mediapipe/framework/deps/source_location.h"
#include "mediapipe/framework/deps/status.h"

namespace mediapipe {

class ABSL_MUST_USE_RESULT StatusBuilder {};

inline StatusBuilder AlreadyExistsErrorBuilder(
    mediapipe::source_location location) {}

inline StatusBuilder FailedPreconditionErrorBuilder(
    mediapipe::source_location location) {}

inline StatusBuilder InternalErrorBuilder(mediapipe::source_location location) {}

inline StatusBuilder InvalidArgumentErrorBuilder(
    mediapipe::source_location location) {}

inline StatusBuilder NotFoundErrorBuilder(mediapipe::source_location location) {}

inline StatusBuilder UnavailableErrorBuilder(
    mediapipe::source_location location) {}

inline StatusBuilder UnimplementedErrorBuilder(
    mediapipe::source_location location) {}

inline StatusBuilder UnknownErrorBuilder(mediapipe::source_location location) {}

}  // namespace mediapipe

#endif  // MEDIAPIPE_DEPS_STATUS_BUILDER_H_