InvalidPayloadException.php 375B

1234567891011121314151617181920
  1. <?php
  2. namespace Illuminate\Queue;
  3. use InvalidArgumentException;
  4. class InvalidPayloadException extends InvalidArgumentException
  5. {
  6. /**
  7. * Create a new exception instance.
  8. *
  9. * @param string|null $message
  10. * @return void
  11. */
  12. public function __construct($message = null)
  13. {
  14. parent::__construct($message ?: json_last_error());
  15. }
  16. }