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

search for in the

Pilotes PDO> <PDOStatement->setFetchMode
Last updated: Fri, 14 Aug 2009

view this page in

La classe PDOException

Introduction

Représente une erreur émise par PDO. Vous ne devez pas lancer une exception PDOException depuis votre propre code. Voir le chapitre sur les exceptions pour plus d'informations concernant les exceptions en PHP.

Synopsis de la classe

PDOException
PDOException Étend RuntimeException {
/* Propriétés */
public array $errorInfo ;
protected string $message ;
protected string $code ;
/* Méthodes héritées */
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 )
}

Propriétés

errorInfo

Correspond à PDO::errorInfo() ou PDOStatement::errorInfo()

message

Message d'erreur textuel. Utilisez la méthode Exception::getMessage() pour y accéder.

code

Code erreur SQLSTATE. Utilisez la méthode Exception::getCode() pour y accéder.



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

Pilotes PDO> <PDOStatement->setFetchMode
Last updated: Fri, 14 Aug 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites