v5:userguide:error_handling
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
v5:userguide:error_handling [2016/02/01 23:56] – mnewnham | v5:userguide:error_handling [2016/02/02 03:30] – mnewnham | ||
---|---|---|---|
Line 44: | Line 44: | ||
</ | </ | ||
- | -------------------------------------------------- | + | |
- | <WRAP right box info 300px> | + | |
- | Currently, the raiseErrorFn must be a function, not a class method. | + | |
- | </ | + | |
===== Override Error Trap/Resume ===== | ===== Override Error Trap/Resume ===== | ||
In certain circumstances, | In certain circumstances, | ||
Line 78: | Line 75: | ||
$db-> | $db-> | ||
+ | </ | ||
+ | |||
+ | ===== Using A Class Method ===== | ||
+ | <code php> | ||
+ | class c | ||
+ | { | ||
+ | function e() | ||
+ | { | ||
+ | print "ERROR TRAP"; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | $c = new c; | ||
+ | |||
+ | $db-> | ||
</ | </ | ||
v5/userguide/error_handling.txt · Last modified: 2018/06/27 16:18 by dregad