9 Commits

Author SHA1 Message Date
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00
0d814fa523 Moved "framework" to "iii". 2013-05-09 12:00:15 -04:00
3616278ada typo. 2013-04-12 07:08:01 -04:00
f2027c1cdd Fixed errorexception trace type. 2013-04-10 23:36:44 -04:00
1df9114b9a refactored ErrorException handling. 2013-04-09 22:28:13 -04:00
4fdaab3560 updated file header. 2013-03-04 08:03:46 -05:00
7f1f1b7767 - Moved handling fatal errors into handleFatalError() method.
- Refactored checking for fatal error.
- Suppressed errors in exception handler in case of fatal errors.
2013-02-20 00:14:30 +04:00
97eda21ab6 ErrorException now extends from Exception 2013-02-20 00:00:25 +04:00
2d5db95149 More on error handling:
- Correct exit code for require errors in CLI mode. It was 0 even in case of error.
- Solved handling fatals and displaying custom error template w/o output buffering.
- If XDEBUG is available, error screen will display trace (implementation inspired by Kohana and Nette).
- Added ErrorException to store/display type of the error and user-friendly messages.
- Fatals are still logged in PHP log.
- Turned off native display_errors since we're now catching all errors.
- Added reserving memory (256kb) . Can be removed safely. In case of removal we're losing only memory exhausted error when allocating last very small chunk of memory.
- Properly handled errors in __toString (exception can't be thrown in this case).
- In the YII_DEBUG===false mode it's bad to display exception name even in page title.
- In the YII_DEBUG===true mode it's still useful to get user-friendly message additionally to exception name.
2013-02-13 03:51:29 +04:00