Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetName()

static string System.Net.Http.Http3ProtocolException.GetName ( Http3ErrorCode errorCode)
inlinestaticprotected

Definition at line 32 of file Http3ProtocolException.cs.

33 {
34 Http3ErrorCode num = errorCode - 256;
35 if ((ulong)num <= 16uL)
36 {
37 switch (num)
38 {
39 case (Http3ErrorCode)0L:
40 return "H3_NO_ERROR (0x100)";
41 case (Http3ErrorCode)1L:
42 return "H3_GENERAL_PROTOCOL_ERROR (0x101)";
43 case (Http3ErrorCode)2L:
44 return "H3_INTERNAL_ERROR (0x102)";
45 case (Http3ErrorCode)3L:
46 return "H3_STREAM_CREATION_ERROR (0x103)";
47 case (Http3ErrorCode)4L:
48 return "H3_CLOSED_CRITICAL_STREAM (0x104)";
49 case (Http3ErrorCode)5L:
50 return "H3_FRAME_UNEXPECTED (0x105)";
51 case (Http3ErrorCode)6L:
52 return "H3_FRAME_ERROR (0x106)";
53 case (Http3ErrorCode)7L:
54 return "H3_EXCESSIVE_LOAD (0x107)";
55 case (Http3ErrorCode)8L:
56 return "H3_ID_ERROR (0x108)";
57 case (Http3ErrorCode)9L:
58 return "H3_SETTINGS_ERROR (0x109)";
59 case (Http3ErrorCode)10L:
60 return "H3_MISSING_SETTINGS (0x10A)";
61 case (Http3ErrorCode)11L:
62 return "H3_REQUEST_REJECTED (0x10B)";
63 case (Http3ErrorCode)12L:
64 return "H3_REQUEST_CANCELLED (0x10C)";
65 case (Http3ErrorCode)13L:
66 return "H3_REQUEST_INCOMPLETE (0x10D)";
67 case (Http3ErrorCode)15L:
68 return "H3_CONNECT_ERROR (0x10F)";
69 case (Http3ErrorCode)16L:
70 return "H3_VERSION_FALLBACK (0x110)";
71 }
72 }
73 return "(unknown error)";
74 }

References System.Runtime.Serialization.Dictionary, and System.L.