CCF
Loading...
Searching...
No Matches
http_exceptions.h
Go to the documentation of this file.
1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the Apache 2.0 License.
3#pragma once
4
5#include "http2_types.h"
6
7#include <stdexcept>
8
9namespace http
10{
11 class RequestTooLargeException : public std::runtime_error
12 {
13 private:
14 http2::StreamId stream_id;
15
16 public:
18 const std::string& msg,
19 http2::StreamId stream_id = http2::DEFAULT_STREAM_ID) :
20 std::runtime_error(msg),
21 stream_id(stream_id)
22 {}
23
25 {
26 return stream_id;
27 }
28 };
29
31 {
32 public:
34 const std::string& msg, http2::StreamId stream_id = 0) :
35 RequestTooLargeException(msg, stream_id)
36 {}
37 };
38
40 {
41 public:
43 const std::string& msg,
44 http2::StreamId stream_id = http2::DEFAULT_STREAM_ID) :
45 RequestTooLargeException(msg, stream_id)
46 {}
47 };
48}
Definition http_exceptions.h:40
RequestHeaderTooLargeException(const std::string &msg, http2::StreamId stream_id=http2::DEFAULT_STREAM_ID)
Definition http_exceptions.h:42
Definition http_exceptions.h:31
RequestPayloadTooLargeException(const std::string &msg, http2::StreamId stream_id=0)
Definition http_exceptions.h:33
Definition http_exceptions.h:12
RequestTooLargeException(const std::string &msg, http2::StreamId stream_id=http2::DEFAULT_STREAM_ID)
Definition http_exceptions.h:17
http2::StreamId get_stream_id() const
Definition http_exceptions.h:24
int32_t StreamId
Definition http2_types.h:21
Definition error_reporter.h:6
STL namespace.