proxygen
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  */
11 
12 namespace proxygen {
13 
14 Exception::Exception(std::string const& msg) : msg_(msg), code_(0) {}
15 
17  : msg_(other.msg_),
18  code_(other.code_),
20 
22  : msg_(other.msg_),
23  code_(other.code_),
25 
26 const char* Exception::what(void) const throw() { return msg_.c_str(); }
27 
28 }
Exception(std::string const &msg)
Definition: Exception.cpp:14
requires E e noexcept(noexcept(s.error(std::move(e))))
const std::string msg_
Definition: Exception.h:53
ProxygenError proxygenError_
Definition: Exception.h:55
#define throw
Definition: FBString.h:89
const char * string
Definition: Conv.cpp:212
const char * what(void) const noexceptoverride
Definition: Exception.cpp:26