If I am using low-level client I am unable to throw custom exception

Did anyone faced this kind of issue? Could you please help me out

Please could you provide more details on what you are trying to achieve?