Throw error on negative exponents