downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

PDO ドライバ> <PDOStatement->setFetchMode
Last updated: Fri, 06 Nov 2009

view this page in

PDOException クラス

導入

PDO が発するエラーを表します。あなた自身が書いたコードから PDOException をスローしてはいけません。 PHP の例外についての詳細な情報は、 例外 を参照ください。

クラス概要

PDOException
PDOException extends RuntimeException {
/* プロパティ */
public array $errorInfo ;
protected string $message ;
protected string $code ;
/* Inherited methods */
final public string Exception::getMessage ( void )
final public Exception Exception::getPrevious ( void )
final public int Exception::getCode ( void )
final public string Exception::getFile ( void )
final public int Exception::getLine ( void )
final public array Exception::getTrace ( void )
final public string Exception::getTraceAsString ( void )
public string Exception::__toString ( void )
final private void Exception::__clone ( void )
}

プロパティ

errorInfo

PDO::errorInfo() あるいは PDOStatement::errorInfo() に対応します。

message

テキストのエラーメッセージ。Exception::getMessage() でアクセスします。

code

SQLSTATE エラーコード。 Exception::getCode() でアクセスします。



add a note add a note User Contributed Notes
PDOException
There are no user contributed notes for this page.

PDO ドライバ> <PDOStatement->setFetchMode
Last updated: Fri, 06 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites