Coder Social home page Coder Social logo

TXLogger::addError向外抛错 about biny HOT 6 CLOSED

tencent avatar tencent commented on May 1, 2024
TXLogger::addError向外抛错

from biny.

Comments (6)

billge1205 avatar billge1205 commented on May 1, 2024

你先确认下是什么错误 index.php里把debug打开 页面里会返回错误信息的 我估计是 log目录没有写权限

from biny.

lordGuan avatar lordGuan commented on May 1, 2024

addError里面的REQUEST的getUrl可能会抛6000,注释上注明抛错导致编译器提示了没有捕捉

from biny.

billge1205 avatar billge1205 commented on May 1, 2024

额 好吧 其实不用管就行了 正常走不到6000的 只有完全获取不到REQUEST信息的时候才会,这边还从来没遇到过

from biny.

lordGuan avatar lordGuan commented on May 1, 2024

我也是这么想的,看起来有点儿难受

from biny.

billge1205 avatar billge1205 commented on May 1, 2024

其实并不建议在Biny中对系统Exception进行catch捕获
Biny本身有写error log 的机制,而且当有异常时 debug模式下会在浏览器返回详细错误 而非debug模式下会返回一个提示页面
如果需要对Exception进行特殊处理 可以全局绑定Exception事件来处理
TXEvent::on(onException, $your_class_method);

from biny.

lordGuan avatar lordGuan commented on May 1, 2024

对啊,忘了这个茬儿了,多谢提醒

from biny.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.