Apache Mesos
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
3rdparty
stout
include
stout
error.hpp
Go to the documentation of this file.
1
// Licensed under the Apache License, Version 2.0 (the "License");
2
// you may not use this file except in compliance with the License.
3
// You may obtain a copy of the License at
4
//
5
// http://www.apache.org/licenses/LICENSE-2.0
6
//
7
// Unless required by applicable law or agreed to in writing, software
8
// distributed under the License is distributed on an "AS IS" BASIS,
9
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
// See the License for the specific language governing permissions and
11
// limitations under the License.
12
13
#ifndef __STOUT_ERROR_HPP__
14
#define __STOUT_ERROR_HPP__
15
16
// NOTE: The order of these `#include`s is important. This file is structured
17
// as a series of `#include`s for historical reasons. Before, `stout/error`
18
// simply contained the definitions of `Error` and `ErrnoError`. The addition
19
// of Windows required the addition of `WindowsError`. But, we try to avoid
20
// `#ifdef`'ing code, opting instead to `#ifdef` `#include` statements. Hence,
21
// we simply move the `error.hpp` code to `errorbase.hpp` and include the
22
// Windows error code below it.
23
#include <
stout/errorbase.hpp
>
24
25
#ifdef __WINDOWS__
26
#include <
stout/windows/error.hpp
>
27
#endif // __WINDOWS__
28
29
using
SocketError
=
30
#ifdef __WINDOWS__
31
WindowsSocketError
;
32
#else
33
ErrnoError
;
34
#endif // __WINDOWS__
35
36
#endif // __STOUT_ERROR_HPP__
WindowsSocketError
Definition:
error.hpp:123
ErrnoError
Definition:
errorbase.hpp:50
errorbase.hpp
error.hpp
Generated by
1.8.11