Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

36 lines
1.1KB

  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. namespace yii\web;
  8. /**
  9. * UnprocessableEntityHttpException represents an "Unprocessable Entity" HTTP
  10. * exception with status code 422.
  11. *
  12. * Use this exception to inform that the server understands the content type of
  13. * the request entity and the syntax of that request entity is correct but the server
  14. * was unable to process the contained instructions. For example, to return form
  15. * validation errors.
  16. *
  17. * @link http://www.webdav.org/specs/rfc2518.html#STATUS_422
  18. * @author Jan Silva <janfrs3@gmail.com>
  19. * @since 2.0.7
  20. */
  21. class UnprocessableEntityHttpException extends HttpException
  22. {
  23. /**
  24. * Constructor.
  25. * @param string $message error message
  26. * @param integer $code error code
  27. * @param \Exception $previous The previous exception used for the exception chaining.
  28. */
  29. public function __construct($message = null, $code = 0, \Exception $previous = null)
  30. {
  31. parent::__construct(422, $message, $code, $previous);
  32. }
  33. }