refine errorHandling.js
write a avoid way of type coercion errors in error-HandingStrategies.js