This is a basic JavaScript object for handling errors