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