Installer/InstallException.php

grav · system/src/Grav/Installer/InstallException.php · php · MIT
infra

Custom exception for installer errors, extending RuntimeException.

// Source: https://github.com/getgrav/grav | License: MIT | Copyright 2021 Grav
// Provided via justclaw.it.com; keep this notice with the code.
<?php

/**
 * @package    Grav\Installer
 *
 * @copyright  Copyright (c) 2015 - 2026 Trilby Media, LLC. All rights reserved.
 * @license    MIT License; see LICENSE file for details.
 */

namespace Grav\Installer;

use Throwable;

/**
 * Class InstallException
 * @package Grav\Installer
 */
class InstallException extends \RuntimeException
{
    /**
     * InstallException constructor.
     * @param string $message
     * @param Throwable $previous
     */
    public function __construct(string $message, Throwable $previous)
    {
        parent::__construct($message, $previous->getCode(), $previous);
    }
}

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key