LinkMenuExpand(external link)DocumentSearchCopyCopied

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.
override 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.
override SqlState { get; }A SQLSTATE code identifying the kind of error.

See Also