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; }
ErrorCode { get; }A MySqlErrorCode value identifying the kind of error.
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(…)

See Also