Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | <?php |
2 | |||||
3 | namespace Illuminate\Contracts\Queue; | ||||
4 | |||||
5 | use InvalidArgumentException; | ||||
6 | |||||
7 | class EntityNotFoundException extends InvalidArgumentException | ||||
8 | { | ||||
9 | /** | ||||
10 | * Create a new exception instance. | ||||
11 | * | ||||
12 | * @param string $type | ||||
13 | * @param mixed $id | ||||
14 | * @return void | ||||
15 | */ | ||||
16 | public function __construct($type, $id) | ||||
17 | { | ||||
18 | $id = (string) $id; | ||||
19 | |||||
20 | parent::__construct("Queueable entity [{$type}] not found for ID [{$id}]."); | ||||
21 | } | ||||
22 | } |