LLVM  11.0.0git
RPCError.cpp
Go to the documentation of this file.
1 //===--------------- RPCError.cpp - RPCERror implementation ---------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // RPC Error type implmentations.
10 //
11 //===----------------------------------------------------------------------===//
12 
14 #include "llvm/Support/Error.h"
16 
17 #include <system_error>
18 #include <string>
19 
24 
25 namespace llvm {
26 namespace orc {
27 namespace rpc {
28 
29 std::error_code ConnectionClosed::convertToErrorCode() const {
31 }
32 
34  OS << "RPC connection already closed";
35 }
36 
37 std::error_code ResponseAbandoned::convertToErrorCode() const {
39 }
40 
42  OS << "RPC response abandoned";
43 }
44 
46  : Signature(std::move(Signature)) {}
47 
48 std::error_code CouldNotNegotiate::convertToErrorCode() const {
50 }
51 
53  OS << "Could not negotiate RPC function " << Signature;
54 }
55 
56 
57 } // end namespace rpc
58 } // end namespace orc
59 } // end namespace llvm
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
Definition: RPCError.cpp:29
void log(raw_ostream &OS) const override
Print an error message to an output stream.
Definition: RPCError.cpp:41
This class represents lattice values for constants.
Definition: AllocatorList.h:23
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
Definition: RPCError.cpp:37
Definition: BitVector.h:959
std::error_code orcError(OrcErrorCode ErrCode)
Definition: OrcError.cpp:82
void log(raw_ostream &OS) const override
Print an error message to an output stream.
Definition: RPCError.cpp:33
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
Definition: RPCError.cpp:48
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:46
CouldNotNegotiate(std::string Signature)
Definition: RPCError.cpp:45
void log(raw_ostream &OS) const override
Print an error message to an output stream.
Definition: RPCError.cpp:52