No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

30 líneas
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. }