PrepAway - Latest Free Exam Questions & Answers

Choose the property of the Exception class that you should use to accomplish the task.

You work as the application developer at Domain.com. You are developing a debug build of an existing application.
You want to locate a specific line of code which resulted in the exception occurring.
Choose the property of the Exception class that you should use to accomplish the task.

PrepAway - Latest Free Exam Questions & Answers

A.
Data property

B.
Message property

C.
StackTrace property

D.
Source property

Explanation:
The StackTrace property provides a listing of the current call stack.
Information such as the method calls and line numbers are shown. Data will return additional user-defined information about the exception Message describes the current exception but will not give details about the source code line number.
Source represents the name of the application or object that caused the error.

One Comment on “Choose the property of the Exception class that you should use to accomplish the task.


Leave a Reply