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.

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.

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.



Leave a Reply 1

Your email address will not be published. Required fields are marked *


seenagape

seenagape

I agree with the answer.