write a usage of throw in errorHandling.js