Skip to content

Commit

Permalink
添加字符集异常
Browse files Browse the repository at this point in the history
  • Loading branch information
fengqi committed Jan 17, 2019
1 parent 203bb39 commit 994bee3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/Exceptions/UnexpectedValueException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace awheel\Exceptions;

use Exception;

/**
* 字符集异常
*
* @package awheel\Exceptions
*/
class UnexpectedValueException extends HttpException
{
/**
* UnexpectedValueException constructor.
*
* @param string $message
* @param int $code
* @param Exception|null $previous
*/
public function __construct($message = "", $code = 0, Exception $previous = null)
{
parent::__construct(500, $message, $previous, $code);
}
}

0 comments on commit 994bee3

Please sign in to comment.