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
Explain how to use multiple submit buttons in ASP.Net MVC?
Can we add constraints to the route? If yes, explain how we can do it?
What is stateless model?
Does Tempdata hold the data for other request in ASP.Net MVC?
Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?
How to change the action name in ASP.Net MVC?
Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?
What is needed for running an application built on winfx on the .net framework 3.0?
What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?
What operating systems will the .net framework 3.0 be available for?
When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?
Explain the 'page lifecycle' of an ASP.NET MVC?
What are authentication filters in web api?
Can we have enum in entity framework?
Explain the .net framework.