LLDB mainline
JSONTransport.cpp
Go to the documentation of this file.
1//===-- JSONTransport.cpp -------------------------------------------------===//
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
10#include "lldb/Utility/Log.h"
11#include "lldb/Utility/Status.h"
12#include "llvm/ADT/StringExtras.h"
13#include "llvm/Support/raw_ostream.h"
14#include <string>
15
16using namespace llvm;
17using namespace lldb;
18using namespace lldb_private;
19
21
23 std::string unhandled_contents)
24 : m_unhandled_contents(unhandled_contents) {}
25
26void TransportUnhandledContentsError::log(llvm::raw_ostream &OS) const {
27 OS << "transport EOF with unhandled contents: '" << m_unhandled_contents
28 << "'";
29}
31 return std::make_error_code(std::errc::bad_message);
32}
void log(llvm::raw_ostream &OS) const override
TransportUnhandledContentsError(std::string unhandled_contents)
std::error_code convertToErrorCode() const override
A class that represents a running process on the host machine.