Hi Chris,
Something that worked out very well for me was using a function that
would take care of the error handling ... kind of
?php
define ( 'ERR_TYPE_ERROR' , 1 ) ;
define ( 'ERR_TYPE_WARNING' , 2 ) ;
class Error {
// error handling code here
}
function _handleError ( $msg , $type ) {
Chris W. Parker wrote:
What I'd ultimately like to do is be able to return more than just a
true/false from a function regarding it's end state. For example, a
function could fail for multiple reasons and just returning a plain
false for all situations does not suffice.
You could either return an
2 matches
Mail list logo