Coverage Report

Created: 2023-11-12 09:30

/proc/self/cwd/source/extensions/filters/network/thrift_proxy/app_exception_impl.h
Line
Count
Source (jump to first uncovered line)
1
#pragma once
2
3
#include "envoy/common/exception.h"
4
5
#include "source/extensions/filters/network/thrift_proxy/metadata.h"
6
#include "source/extensions/filters/network/thrift_proxy/protocol.h"
7
#include "source/extensions/filters/network/thrift_proxy/thrift.h"
8
9
namespace Envoy {
10
namespace Extensions {
11
namespace NetworkFilters {
12
namespace ThriftProxy {
13
14
struct AppException : public EnvoyException, public DirectResponse {
15
  AppException(AppExceptionType type, const std::string& what)
16
0
      : EnvoyException(what), type_(type) {}
17
0
  AppException(const AppException& ex) : EnvoyException(ex.what()), type_(ex.type_) {}
18
19
  ResponseType encode(MessageMetadata& metadata, Protocol& proto,
20
                      Buffer::Instance& buffer) const override;
21
22
  const AppExceptionType type_;
23
};
24
25
} // namespace ThriftProxy
26
} // namespace NetworkFilters
27
} // namespace Extensions
28
} // namespace Envoy