write a error type in errorHandling.js
write a usage of try-catch in errorHandling.js