PDOException �쳣��

(PHP 5 >= 5.1.0, PHP 7)

���

����һ���� PDO �����Ĵ������Լ��Ĵ��벻Ӧ�׳�һ�� PDOException �쳣������ PHP �쳣�ĸ�����Ϣ��μ� �쳣 ��

��ժҪ

PDOException extends RuntimeException {
/* ���� */
public array $errorInfo ;
protected string $message ;
protected string $code ;
/* �̳еķ��� */
final public Exception::getMessage ( void ) : string
final public Exception::getPrevious ( void ) : Throwable
final public Exception::getCode ( void ) : int
final public Exception::getFile ( void ) : string
final public Exception::getLine ( void ) : int
final public Exception::getTrace ( void ) : array
final public Exception::getTraceAsString ( void ) : string
public Exception::__toString ( void ) : string
final private Exception::__clone ( void ) : void
}

����

errorInfo

�൱��PDO::errorInfo() �� PDOStatement::errorInfo()

message

�ı�������Ϣ���� Exception::getMessage() �����ʡ�

code

SQLSTATE �����롣��Exception::getCode() �����ʡ�