ValidationHttpException.php 637 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Dingo\Api\Exception;
  3. use Exception;
  4. class ValidationHttpException extends ResourceException
  5. {
  6. /**
  7. * Create a new validation HTTP exception instance.
  8. *
  9. * @param \Illuminate\Support\MessageBag|array $errors
  10. * @param \Exception $previous
  11. * @param array $headers
  12. * @param int $code
  13. * @return void
  14. */
  15. public function __construct($errors = null, Exception $previous = null, $headers = [], $code = 0)
  16. {
  17. parent::__construct(null, $errors, $previous, $headers, $code);
  18. }
  19. }