| 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 | */ |
| 15 | public function __construct($type, $id) |
| 16 | { |
| 17 | $id = (string) $id; |
| 18 | |
| 19 | parent::__construct("Queueable entity [{$type}] not found for ID [{$id}]."); |
| 20 | } |
| 21 | } |