ResolverException::buildMessage()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
ccs 0
cts 0
cp 0
c 0
b 0
f 0
nc 1
1
<?php
2
3
/*
4
 * This file is part of the JVal package.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace JVal\Exception;
11
12
/**
13
 * Base class for URI resolution exception.
14
 */
15
abstract class ResolverException extends \Exception
16
{
17
    /**
18
     * Constructor.
19
     *
20
     * @param array $parameters The exception message parameters
21
     */
22 22
    public function __construct(array $parameters = [])
23
    {
24 22
        parent::__construct($this->buildMessage($parameters));
25 22
    }
26
27
    /**
28
     * Builds the exception message.
29
     *
30
     * @param array $parameters
31
     */
32
    abstract protected function buildMessage(array $parameters);
33
}
34