webserver的错误捕捉和类型

异常类型:


1.前台导向类


程序可通过try except块来捕捉,根据异常handle来判断程序处理.通过生成错误导向页面来引导用户处理.


2.后台异常类


后台程序出现可预知的错误,通过try except块来捕捉,根据异常handle来判断程序处理,运行时log到指定文件.


3.后台无法预料的错误


用madshiExcept捕捉后让用户选择处理方式.

This entry was posted in 工作记录. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word