---
title: Avoid multiple unary operators
description: "Impact Area Manageability Severity High Affected Element Apex Class ## Rule ID ****SF-AVOID-LOSING-EXCEPTION-INFO**** ## Impact This rule will generate an issue if a try/catch block neither handles nor propagates the exception. However, if any of the following actions are taken…"
url: "https://community-staging.qualityclouds.com/qcdocs/qc/salesforce-rules/avoid-multiple-unary-operators/"
updated: "2025-03-21"
category: Rules
---

# Avoid multiple unary operators

Impact Area

Manageability

           Severity

High

           Affected Element

Apex Class

## Rule ID

****SF-AVOID-LOSING-EXCEPTION-INFO****

## Impact

This rule will generate an issue if a try/catch block neither handles nor propagates the exception. However, if any of the following actions are taken within the catch block, the issue will not be generated:

- Calling a method that consumes the exception (for example, a method that handles the exception). This method may directly receive the exception or data derived from it.
- Rethrowing the exception or throwing a new one “chained” to the caught exception.
- Throwing a new exception that, in its constructor, receives information from the caught exception or data obtained by invoking a method on it.

## Remediation

Ensure that the intended usage is not a bug, or consider simplifying the expression.

**Time to fix**

15 min
