Doctrine\DBAL\Statement::errorCode PHP Method

errorCode() public method

Fetches the SQLSTATE associated with the last operation on the statement.
public errorCode ( ) : string
return string
    public function errorCode()
    {
        return $this->stmt->errorCode();
    }

Usage Example

 /**
  * @return mixed
  */
 function errorCode()
 {
     return $this->stmt->errorCode();
 }