ValidateException.php 452 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Admin\Extensions\Exception;
  3. use Exception;
  4. class ValidateException extends Exception
  5. {
  6. protected $response;
  7. public function __construct($response)
  8. {
  9. parent::__construct('error');
  10. $this->response=$response;
  11. }
  12. /**
  13. * Render the exception into an HTTP response.
  14. *
  15. * @return \Illuminate\Http\Response
  16. */
  17. public function render()
  18. {
  19. return $this->response;
  20. }
  21. }