OCI8Exception.php 387 Bytes
Newer Older
1 2 3 4
<?php

namespace Doctrine\DBAL\Driver\OCI8;

5 6 7
use Doctrine\DBAL\Driver\AbstractDriverException;

class OCI8Exception extends AbstractDriverException
8
{
Benjamin Morel's avatar
Benjamin Morel committed
9
    /**
10
     * @param mixed[] $error
Benjamin Morel's avatar
Benjamin Morel committed
11 12 13
     *
     * @return \Doctrine\DBAL\Driver\OCI8\OCI8Exception
     */
14
    public static function fromErrorInfo($error)
15
    {
16
        return new self($error['message'], null, $error['code']);
17 18
    }
}