mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-06 03:02:34 +01:00
25 lines
468 B
PHP
25 lines
468 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Exceptions;
|
||
|
|
||
|
use Exception;
|
||
|
use Throwable;
|
||
|
|
||
|
class ResourceDependencyMissing extends Exception
|
||
|
{
|
||
|
private $resource;
|
||
|
private $dependency;
|
||
|
|
||
|
public function __construct($resource, $dependency)
|
||
|
{
|
||
|
parent::__construct();
|
||
|
$this->resource = $resource;
|
||
|
$this->dependency = $dependency;
|
||
|
}
|
||
|
|
||
|
public function report()
|
||
|
{
|
||
|
return "Resource '{$this->resource}' depends on '{$this->dependency}'.";
|
||
|
}
|
||
|
}
|