Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Surijulia

Surijulia

Community Learner
Active in: Salesforce Python
Share
0Questions
4Answers
0Views on questions

How to log the Exception message using by logging module?

The issue is that the exception is being caught but discarded with Retro Bowl pass, so the error message never reaches your logs; using Python’s built-in logging module with logging.exception() is a straightforward way to capture both the message and traceback.

Python

Answered Sep 18, 2026 · 1.0K Views Read answer →

How to get the code coverage catch block in test class?

If your test class is not covering the catch block, the most common reason is that the test Sprunki data and conditions are not triggering the exception that the code is designed to handle. To achieve coverage, you need to create a test scenario that intentionally causes the try block to fail, forcing execution into…

Salesforce

Answered Jun 6, 2026 · 3.7K Views Read answer →

More members from the Salesforce community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.