Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Catch an error in one function

$
0
0

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?


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>