This repository has been archived by the owner on May 25, 2021. It is now read-only.
/
AuthenticationException.cs
103 lines (92 loc) · 2.18 KB
/
AuthenticationException.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
using FluentCassandra.Thrift.Protocol;
/**
* Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
using System;
using System.Text;
namespace FluentCassandra.Apache.Cassandra
{
/// <summary>
/// invalid authentication request (invalid keyspace, user does not exist, or credentials invalid)
/// </summary>
#if !SILVERLIGHT
[Serializable]
#endif
public partial class AuthenticationException : Exception, TBase
{
private string _why;
public string Why
{
get
{
return _why;
}
set
{
__isset.why = true;
this._why = value;
}
}
public Isset __isset;
#if !SILVERLIGHT
[Serializable]
#endif
public struct Isset {
public bool why;
}
public AuthenticationException() {
}
public void Read (TProtocol iprot)
{
TField field;
iprot.ReadStructBegin();
while (true)
{
field = iprot.ReadFieldBegin();
if (field.Type == TType.Stop) {
break;
}
switch (field.ID)
{
case 1:
if (field.Type == TType.String) {
Why = iprot.ReadString();
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("AuthenticationException");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (Why != null && __isset.why) {
field.Name = "why";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(Why);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
public override string ToString() {
StringBuilder sb = new StringBuilder("AuthenticationException(");
sb.Append("Why: ");
sb.Append(Why);
sb.Append(")");
return sb.ToString();
}
}
}