您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

30 行
834B

  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. * ConflictHttpException represents a "Conflict" HTTP exception with status code 409
  10. *
  11. * @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.10
  12. * @author Dan Schmidt <danschmidt5189@gmail.com>
  13. * @since 2.0
  14. */
  15. class ConflictHttpException extends HttpException
  16. {
  17. /**
  18. * Constructor.
  19. * @param string $message error message
  20. * @param integer $code error code
  21. * @param \Exception $previous The previous exception used for the exception chaining.
  22. */
  23. public function __construct($message = null, $code = 0, \Exception $previous = null)
  24. {
  25. parent::__construct(409, $message, $code, $previous);
  26. }
  27. }