proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
Exception.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015-present, Facebook, Inc.
3
* All rights reserved.
4
*
5
* This source code is licensed under the BSD-style license found in the
6
* LICENSE file in the root directory of this source tree. An additional grant
7
* of patent rights can be found in the PATENTS file in the same directory.
8
*
9
*/
10
#include <
proxygen/lib/utils/Exception.h
>
11
12
namespace
proxygen
{
13
14
Exception::Exception
(
std::string
const
& msg) : msg_(msg), code_(0) {}
15
16
Exception::Exception
(
const
Exception
& other)
17
:
msg_
(other.
msg_
),
18
code_
(other.
code_
),
19
proxygenError_
(other.
proxygenError_
) {}
20
21
Exception::Exception
(
Exception
&& other)
noexcept
22
:
msg_
(other.
msg_
),
23
code_
(other.
code_
),
24
proxygenError_
(other.
proxygenError_
) {}
25
26
const
char
*
Exception::what
(
void
)
const
throw
() {
return
msg_
.c_str(); }
27
28
}
proxygen::Exception::Exception
Exception(std::string const &msg)
Definition:
Exception.cpp:14
folly::pushmi::__adl::noexcept
requires E e noexcept(noexcept(s.error(std::move(e))))
Definition:
extension_points.h:40
proxygen::Exception::msg_
const std::string msg_
Definition:
Exception.h:53
proxygen::Exception
Definition:
Exception.h:22
Exception.h
proxygen::Exception::proxygenError_
ProxygenError proxygenError_
Definition:
Exception.h:55
throw
#define throw
Definition:
FBString.h:89
string
const char * string
Definition:
Conv.cpp:212
proxygen
Definition:
ExMessageHandler.h:14
proxygen::Exception::what
const char * what(void) const noexceptoverride
Definition:
Exception.cpp:26
proxygen::Exception::code_
int code_
Definition:
Exception.h:54
proxygen
lib
utils
Exception.cpp
Generated by
1.8.11