php - How to do error handling when including other 3rd party libraries -
i've added 3rd party open source library php app. (phpseclib) i've wrapped calls methods seek / grab blocks , i'm handling errors handle errors gracefully.
however, because 3rd party library doesn't have baked in error handling, when dies, php error + codeigniter message i'm throwing when i, let's say, seek connect device , fails.
aside changing library include error handling, want create sure there's nil can prevent these "unhandled" messages appearing end user...
thank you
you can write own error handler set_error_handler()
, ignore and/or handle errors according level.
php codeigniter error-handling
No comments:
Post a Comment