You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
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. }