Completed
Push — master ( cc6356...ca1999 )
by
unknown
04:54 queued 10s
created

NoDriverException::__construct()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 5
nc 1
nop 3
1
<?php
2
3
/*
4
 * This file is part of the Sonata Project package.
5
 *
6
 * (c) Thomas Rabaix <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Sonata\MediaBundle\Exception;
13
14
/**
15
 * @author Andrey F. Mindubaev <[email protected]>
16
 */
17
final class NoDriverException extends \RuntimeException
18
{
19
    public function __construct($message = null, $code = 0, \Exception $previous = null)
20
    {
21
        parent::__construct(
22
            null === $message ? 'The child node "db_driver" at path "sonata_media" must be configured.' : $message,
23
            $code,
24
            $previous
25
        );
26
    }
27
}
28