EntityNotFoundException.php 432 B

123456789101112131415161718192021
  1. <?php
  2. namespace Illuminate\Contracts\Queue;
  3. use InvalidArgumentException;
  4. class EntityNotFoundException extends InvalidArgumentException
  5. {
  6. /**
  7. * Create a new exception instance.
  8. *
  9. * @param string $type
  10. * @param mixed $id
  11. */
  12. public function __construct($type, $id)
  13. {
  14. $id = (string) $id;
  15. parent::__construct("Queueable entity [{$type}] not found for ID [{$id}].");
  16. }
  17. }