Class Error
Inheritance
System.Object
Error
Implements
Google.Protobuf.IBufferMessage
Assembly: MySql.Data.dll
Version: 9.2.0
Syntax
public sealed class Error : Google.Protobuf.IMessage<Error>
Constructors
Error()
Declaration
Error(Error)
Declaration
public Error(Error other)
Parameters
Type |
Name |
Description |
Error |
other |
|
Fields
CodeFieldNumber
Field number for the "code" field.
Declaration
public const int CodeFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
MsgFieldNumber
Field number for the "msg" field.
Declaration
public const int MsgFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
SeverityFieldNumber
Field number for the "severity" field.
Declaration
public const int SeverityFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
SqlStateFieldNumber
Field number for the "sql_state" field.
Declaration
public const int SqlStateFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
Properties
Code
Declaration
public uint Code { get; set; }
Property Value
Type |
Description |
System.UInt32 |
|
Descriptor
Declaration
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
Type |
Description |
Google.Protobuf.Reflection.MessageDescriptor |
|
HasCode
Gets whether the "code" field is set
Declaration
public bool HasCode { get; }
Property Value
Type |
Description |
System.Boolean |
|
HasMsg
Gets whether the "msg" field is set
Declaration
public bool HasMsg { get; }
Property Value
Type |
Description |
System.Boolean |
|
HasSeverity
Gets whether the "severity" field is set
Declaration
public bool HasSeverity { get; }
Property Value
Type |
Description |
System.Boolean |
|
HasSqlState
Gets whether the "sql_state" field is set
Declaration
public bool HasSqlState { get; }
Property Value
Type |
Description |
System.Boolean |
|
Msg
- human-readable error message
Declaration
public string Msg { get; set; }
Property Value
Type |
Description |
System.String |
|
Parser
Declaration
public static Google.Protobuf.MessageParser<Error> Parser { get; }
Property Value
Type |
Description |
Google.Protobuf.MessageParser<Error> |
|
Severity
- severity of the error message
Declaration
public Error.Types.Severity Severity { get; set; }
Property Value
SqlState
Declaration
public string SqlState { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
ClearCode()
Clears the value of the "code" field
Declaration
ClearMsg()
Clears the value of the "msg" field
Declaration
ClearSeverity()
Clears the value of the "severity" field
Declaration
public void ClearSeverity()
ClearSqlState()
Clears the value of the "sql_state" field
Declaration
public void ClearSqlState()
Clone()
Declaration
Returns
Equals(Error)
Declaration
public bool Equals(Error other)
Parameters
Type |
Name |
Description |
Error |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Declaration
public void MergeFrom(Google.Protobuf.CodedInputStream input)
Parameters
Type |
Name |
Description |
Google.Protobuf.CodedInputStream |
input |
|
MergeFrom(Error)
Declaration
public void MergeFrom(Error other)
Parameters
Type |
Name |
Description |
Error |
other |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
WriteTo(Google.Protobuf.CodedOutputStream)
Declaration
public void WriteTo(Google.Protobuf.CodedOutputStream output)
Parameters
Type |
Name |
Description |
Google.Protobuf.CodedOutputStream |
output |
|
Implements
Google.Protobuf.IBufferMessage