MongoDB C++ Driver 4.2.0
Loading...
Searching...
No Matches
error_code-fwd.hpp
Go to the documentation of this file.
1// Copyright 2009-present MongoDB, Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma once
16
17#include <bsoncxx/v1/exception-fwd.hpp> // IWYU pragma: export
18
19#include <cstdint>
20#include <system_error>
21
22namespace bsoncxx {
23namespace v_noabi {
24
25enum class error_code : std::int32_t;
26
27} // namespace v_noabi
28} // namespace bsoncxx
29
30namespace bsoncxx {
31
33
34} // namespace bsoncxx
35
36namespace std {
37
38template <>
39struct is_error_code_enum<bsoncxx::v_noabi::error_code>;
40
41} // namespace std
42
Declares bsoncxx error-handling utilities.
@ bsoncxx
From the bsoncxx library.
Definition exception.hpp:39
Declares entities whose ABI stability is NOT guaranteed.
error_code
Enum representing the various error types that can occur while operating on BSON values.
Definition error_code.hpp:36
The top-level namespace within which all bsoncxx library entities are declared.