The PDOException class
Guide
Edit on GitHub ✎
Represents an error raised by PDO. You should not throw a PDOException from your own code.
Intro
Represents an error raised by PDO. You should not throw a PDOException from your own code.
See also language.error-handling.throwable.
Class synopsis
extends RuntimeException { }
Properties
errorInfoCorresponds to
PDO::errorInfoorPDOStatement::errorInfocodeSQLSTATEerror code. UsePDOException::getCodeto access it.
Pdoexception