LLVM  12.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 <string>
18 #include <system_error>
19 
24 
25 namespace llvm {
26 namespace orc {
27 namespace shared {
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 } // end namespace shared
57 } // end namespace orc
58 } // end namespace llvm
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
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
Definition: RPCError.cpp:48
void log(raw_ostream &OS) const override
Print an error message to an output stream.
Definition: RPCError.cpp:33
Definition: BitVector.h:941
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:52
void log(raw_ostream &OS) const override
Print an error message to an output stream.
Definition: RPCError.cpp:41
CouldNotNegotiate(std::string Signature)
Definition: RPCError.cpp:45
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
Definition: RPCError.cpp:29
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:50
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Definition: STLExtras.h:1556