CCF
Loading...
Searching...
No Matches
src
http
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
9
namespace
http
10
{
11
class
RequestTooLargeException
:
public
std::runtime_error
12
{
13
private
:
14
http2::StreamId
stream_id;
15
16
public
:
17
RequestTooLargeException
(
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
24
http2::StreamId
get_stream_id
()
const
25
{
26
return
stream_id;
27
}
28
};
29
30
class
RequestPayloadTooLargeException
:
public
RequestTooLargeException
31
{
32
public
:
33
RequestPayloadTooLargeException
(
34
const
std::string& msg,
http2::StreamId
stream_id = 0) :
35
RequestTooLargeException
(msg, stream_id)
36
{}
37
};
38
39
class
RequestHeaderTooLargeException
:
public
RequestTooLargeException
40
{
41
public
:
42
RequestHeaderTooLargeException
(
43
const
std::string& msg,
44
http2::StreamId
stream_id = http2::DEFAULT_STREAM_ID) :
45
RequestTooLargeException
(msg, stream_id)
46
{}
47
};
48
}
http::RequestHeaderTooLargeException
Definition
http_exceptions.h:40
http::RequestHeaderTooLargeException::RequestHeaderTooLargeException
RequestHeaderTooLargeException(const std::string &msg, http2::StreamId stream_id=http2::DEFAULT_STREAM_ID)
Definition
http_exceptions.h:42
http::RequestPayloadTooLargeException
Definition
http_exceptions.h:31
http::RequestPayloadTooLargeException::RequestPayloadTooLargeException
RequestPayloadTooLargeException(const std::string &msg, http2::StreamId stream_id=0)
Definition
http_exceptions.h:33
http::RequestTooLargeException
Definition
http_exceptions.h:12
http::RequestTooLargeException::RequestTooLargeException
RequestTooLargeException(const std::string &msg, http2::StreamId stream_id=http2::DEFAULT_STREAM_ID)
Definition
http_exceptions.h:17
http::RequestTooLargeException::get_stream_id
http2::StreamId get_stream_id() const
Definition
http_exceptions.h:24
http2_types.h
http2::StreamId
int32_t StreamId
Definition
http2_types.h:21
http
Definition
error_reporter.h:6
std
STL namespace.
Generated by
1.9.8