UiPath Advanced RPA Developer (UiARD) — Question 55
A developer wants to ensure that a process they are developing includes log messages that are meaningful and indicate which activity caused the error. During the execution of the process, an
Application Exception is caught and stored in a local variable called exception.
How should the Message property of the Log Message activity in the Catch section of this exception be configured?
Answer options
- A. exception.Message + "at" + exception.Source
- B. exception.Message
- C. "Application Exception at" + exception.Source
- D. "Exception occurred at" + exception.Source
Correct answer: C
Explanation
The correct answer, C, provides a clear indication of the type of exception and its source, which is essential for debugging. Options A and B lack the context of the exception type, while D does not specify that it is an Application Exception, making it less informative.