blob: b3478383ed592668fd77bef0666e5a8a67ca78a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
namespace Digitigrade\Exception;
use Digitigrade\Model\Instance;
class EndpointMissingException extends \RuntimeException {
protected Instance $instance;
protected string $endpointName;
public function __construct(Instance $instance, string $endpointName, \Throwable $previous = null) {
parent::__construct("Instance $instance->domain has no $endpointName endpoint", previous: $previous);
$this->instance = $instance;
$this->endpointName = $endpointName;
}
public function getInstance(): Instance {
return $this->instance;
}
public function getEndpointName(): string {
return $this->endpointName;
}
}
|