Completed
Push — feature/service-wrapper-for-sw... ( faf928...5dac9b )
by Samuel
13:45 queued 01:09
created

XDynamicKeyException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
c 2
b 0
f 1
lcom 0
cbo 1
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
/**
3
 * XDynamicKeyException
4
 */
5
6
namespace Graviton\ExceptionBundle\Exception;
7
8
use Symfony\Component\HttpFoundation\Response;
9
10
/**
11
 * XDynamicKey exception class
12
 *
13
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
14
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
15
 * @link     http://swisscom.ch
16
 */
17
final class XDynamicKeyException extends RestException
18
{
19
    /**
20
     * Constructor
21
     *
22
     * @param string     $message Error message
23
     * @param \Exception $prev    Previous Exception
24
     */
25
    public function __construct($message = "x-dynamic-key ref-field could not be resolved", $prev = null)
26
    {
27
28
        parent::__construct(Response::HTTP_INTERNAL_SERVER_ERROR, $message, $prev);
29
    }
30
}
31