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

CoreException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 3
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