1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-06 03:02:34 +01:00
invoiceninja/app/Exceptions/ResourceDependencyMissing.php

25 lines
468 B
PHP
Raw Normal View History

<?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}'.";
}
}