11.1.6.1 MySqlException Members

MySqlException overview

Public Instance Properties

Data (inherited from Exception)Gets a collection of key/value pairs that provide additional, user-defined information about the exception.
HelpLink (inherited from Exception)Gets or sets a link to the help file associated with this exception.
InnerException (inherited from Exception)Gets the Exceptioninstance that caused the current exception.
Message (inherited from Exception)Gets a message that describes the current exception.
NumberGets a number that identifies the type of error. This number corresponds to the error numbers given in Server Error Codes and Messages.
Source (inherited from Exception)Gets or sets the name of the application or the object that causes the error.
StackTrace (inherited from Exception)Gets a string representation of the frames on the call stack at the time the current exception was thrown.
TargetSite (inherited from Exception)Gets the method that throws the current exception.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetBaseException (inherited from Exception)When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetObjectData (inherited from Exception)When overridden in a derived class, sets the SerializationInfo with information about the exception.
GetType (inherited from Exception)Gets the runtime type of the current instance.
ToString (inherited from Exception)Creates and returns a string representation of the current exception.

See Also

MySqlException Class, MySql.Data.MySqlClient Namespace

11.1.6.1.1 Number Property

Gets a number that identifies the type of error.

Syntax: Visual Basic

Public ReadOnly Property Number As Integer

Syntax: C#

public int Number {get;}

See Also

MySqlException Class, MySql.Data.MySqlClient Namespace


User Comments
Sign Up Login You must be logged in to post a comment.