If you are using components in your application, how can you
handle exceptions raised in a component ?

Answer Posted / parag

A method call in a COM server that has generated an
exception creates an instance of the COM error object using
the ICreateErrorInfo interface. The server then populates
the error object with information about the source and cause
of an error. When program control returns to the COM client,
the client can retrieve the error object, find the
information, and use this information determine how to
handle the error.

Unlike exceptions thrown within a program, COM exceptions do
not stop the flow of execution; instead, a COM error object
is created within the current thread. The error object
supports the IErrorInfo interface, which has methods
allowing the client to get the name of the class and
interface that created the error and a description of the error.

COM defines another interface, ISupportErrorInfo, which is
used to indicate that a class may create a COM error object.
Many ArcObjects classes implement the ISupportErrorInfo
interface.

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is html.renderpartial?

760


What are the main features of asp.net mvc 4 used by asp.net web api?

763


what do you mean by navigation property?

782


Explain how you can send the result back in JSON format in MVC?

762


What are the 2 ways of adding constraints to a route?

753


What you mean by routing in mvc?

800


what is entity data model?

772


What is managed extensibility framework?

734


How can you return string result from Action in ASP.Net MVC?

761


What is basic authentication in web api?

721


Name a few different return types of a controller action method?

746


What are the levels at which filters can be applied in an asp.net mvc application?

780


How to update one of my table in database at 4pm every day how it is possible?

756


What is entityset? : Entity framework

755


What is entity sql? : Entity framework

740