Welcome Guest, Not a member yet? Register   Sign In
Handing errors in my code using Exceptions
#4

Perhaps I can create my own Exception type? (http://php.net/manual/en/language.exceptions.php#91159)

I just thought it would be easy to use exceptions to throw errors from the methods, opposed to just true/false, and without having to require whatever is using the class to handle errors the same way.
Reply


Messages In This Thread
RE: Handing errors in my code using Exceptions - by jLinux - 09-21-2015, 03:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB