BindParamException.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://zjzit.cn>
  10. // +----------------------------------------------------------------------
  11. namespace think\db\exception;
  12. use think\exception\DbException;
  13. /**
  14. * PDO参数绑定异常
  15. */
  16. class BindParamException extends DbException
  17. {
  18. /**
  19. * BindParamException constructor.
  20. * @param string $message
  21. * @param array $config
  22. * @param string $sql
  23. * @param array $bind
  24. * @param int $code
  25. */
  26. public function __construct($message, $config, $sql, $bind, $code = 10502)
  27. {
  28. $this->setData('Bind Param', $bind);
  29. parent::__construct($message, $config, $sql, $code);
  30. }
  31. }