aboutsummaryrefslogtreecommitdiff
path: root/lib/exceptions/OverlapException.php
blob: efac6e51719d10ac8e460407540173c858e9d112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
 * Exception class used to report overlapping errors
 *
 * @author  Jan-Hendrik Willms <tleilax+studip@gmail.com>
 * @license GPL2 or any later version
 * @since   Stud.IP 4.3
 */
class OverlapException extends Exception
{
    protected $details;

    public function __construct($message = '', array $details = [])
    {
        parent::__construct($message);

        $this->setDetails($details);
    }

    public function setDetails(array $details)
    {
        $this->details = $details;
    }

    public function getDetails()
    {
        return $this->details;
    }
}