throw error and try catch adding up