MySqlConnector


MySqlException class

MySqlException is thrown when MySQL Server returns an error code, or there is a communication error with the server.

public sealed class MySqlException : DbException

Public Members

namedescription
override Data { get; }Gets a collection of key/value pairs that provide additional information about the exception.
ErrorCode { get; }A MySqlErrorCode value identifying the kind of error.
IsTransient { get; }Returns true if this exception could indicate a transient error condition (that could succeed if retried); otherwise, false.
Number { get; }A MySqlErrorCode value identifying the kind of error. Prefer to use the ErrorCode property.
SqlState { get; }A SQLSTATE code identifying the kind of error.
override GetObjectData(…)Sets the SerializationInfo with information about the exception.

See Also