EntityNotFoundException.php 452 B

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