Utility Methods for the MySQL DBD.
Raise exception using information from MysqlError object e. For state value, use SQLSTATE value if mysql-ruby defines sqlstate method, otherwise nil.
[Validate]