This file is indexed.

/usr/share/php/propel/exception/PropelException.php is in php-propel-runtime 1.6.9-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @license    MIT License
 */

/**
 * The base class of all exceptions thrown by Propel.
 * @author     Hans Lellelid <hans@xmpl.org>
 * @version    $Revision$
 * @package    propel.runtime.exception
 */
class PropelException extends Exception
{
    /**
     * The nested "cause" exception.
     *
     * @var       Exception
     */
    protected $cause;

    /**
     * Emulates wrapped exceptions for PHP < 5.3
     *
     * @param string    $message
     * @param Exception $previous
     *
     * @return PropelException
     */
    public function __construct($message = null, Exception $previous = null)
    {
        if ($previous === null && $message instanceof Exception) {
            $previous = $message;
            $message = "";
        }

        if ($previous !== null) {
            $message .= " [wrapped: " . $previous->getMessage() ."]";
            if (version_compare(PHP_VERSION, '5.3.0') >= 0) {
                parent::__construct($message, 0, $previous);
            } else {
                parent::__construct($message);
                $this->cause = $previous;
            }
        } else {
            parent::__construct($message);
        }
    }

    /**
     * Get the previous Exception
     * We can't override getPrevious() since it's final
     *
     * @return Exception The previous exception
     */
    public function getCause()
    {
        if (version_compare(PHP_VERSION, '5.3.0') >= 0) {
            return $this->getPrevious();
        } else {
            return $this->cause;
        }
    }
}