Completed
Pull Request — master (#69)
by Pieter
03:28 queued 01:21
created

CoreException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
/**
4
 * @file
5
 * Contains \Drupal\Driver\Exception\CoreException.
6
 */
7
8
namespace Drupal\Driver\Exception;
9
10
/**
11
 * Base class for exceptions thrown in classes implementing CoreInterface.
12
 */
13
abstract class CoreException extends Exception {
14
15
  /**
16
   * Initializes exception.
17
   *
18
   * @param string $message
19
   *   The exception message.
20
   * @param int $code
21
   *   Optional exception code. Defaults to 0.
22
   * @param \Exception $previous
23
   *   Optional previous exception that was thrown.
24
   */
25
  public function __construct($message, $code = 0, \Exception $previous = NULL) {
26
    parent::__construct($message, NULL, $code, $previous);
27
  }
28
29
}
30