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

NoDriverException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 2
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