MongoDB C++ Driver 4.2.0
Loading...
Searching...
No Matches
exception.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/exception/exception-fwd.hpp> // IWYU pragma: export
18
19//
20
21#include <bsoncxx/v1/exception.hpp> // IWYU pragma: export
22
23#include <system_error>
24
26
27namespace bsoncxx {
28namespace v_noabi {
29
30BSONCXX_PRIVATE_WARNINGS_PUSH();
31BSONCXX_PRIVATE_WARNINGS_DISABLE(MSVC(4251));
32BSONCXX_PRIVATE_WARNINGS_DISABLE(MSVC(4275));
33
37class exception : public std::system_error {
38 public:
39 ~exception() override;
40
41 exception(exception&&) = default;
42 exception& operator=(exception&&) = default;
43 exception(exception const&) = default;
44 exception& operator=(exception const&) = default;
45
46 using std::system_error::system_error;
47};
48
49BSONCXX_PRIVATE_WARNINGS_POP();
50
51} // namespace v_noabi
52} // namespace bsoncxx
53
55
Provides bsoncxx error-handling utilities.
The bsoncxx v_noabi macro guard postlude header.
The bsoncxx v_noabi macro guard prelude header.
Declares bsoncxx::v_noabi::exception.
Declares entities whose ABI stability is NOT guaranteed.
The top-level namespace within which all bsoncxx library entities are declared.