I have a function in which there are a few line code and return boolean.
If apply this function in main page, how to catch an error in try--catch block if some code in the function has an error?
Using exit function or return false?
I have a function in which there are a few line code and return boolean.
If apply this function in main page, how to catch an error in try--catch block if some code in the function has an error?
Using exit function or return false?