code: public function useHandler()
      {
          \DdvPhp\DdvException\Handler::setHandler(function (array $r, $e) {
              $this->onHandler($r, $e);
          }, function () {
              return $this->isDevelopment();
          });
          return $this;
      }
docs: [setHandler 设置错误监听]
  @author: 桦 <yuchonghua@163.com>
  @DateTime 2017-04-26T18:56:12+0800