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
25
#include <
bsoncxx/config/prelude.hpp
>
26
27
namespace
bsoncxx
{
28
namespace
v_noabi
{
29
30
BSONCXX_PRIVATE_WARNINGS_PUSH();
31
BSONCXX_PRIVATE_WARNINGS_DISABLE(MSVC(4251));
32
BSONCXX_PRIVATE_WARNINGS_DISABLE(MSVC(4275));
33
37
class
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
49
BSONCXX_PRIVATE_WARNINGS_POP();
50
51
}
// namespace v_noabi
52
}
// namespace bsoncxx
53
54
#include <
bsoncxx/config/postlude.hpp
>
55
exception.hpp
Provides bsoncxx error-handling utilities.
postlude.hpp
The bsoncxx v_noabi macro guard postlude header.
prelude.hpp
The bsoncxx v_noabi macro guard prelude header.
exception-fwd.hpp
Declares bsoncxx::v_noabi::exception.
bsoncxx::v_noabi
Declares entities whose ABI stability is NOT guaranteed.
bsoncxx
The top-level namespace within which all bsoncxx library entities are declared.
bsoncxx
v_noabi
bsoncxx
exception
exception.hpp
Generated by
1.15.0