izzum\statemachine\persistence\PDO::getErrorInfo PHP Method

getErrorInfo() protected method

collects error information ready to be used as output.
protected getErrorInfo ( PDOStatement $statement ) : string
$statement PDOStatement
return string
    protected function getErrorInfo(\PDOStatement $statement)
    {
        $info = $statement->errorInfo();
        $output = sprintf("%s - message: '%s'", $info[0], $info[2]);
        return $output;
    }