If you are using components in your application, how can you
handle exceptions raised in a component ?
Answers were Sorted based on User's Feedback
Answer / saikiran
I think for simple Handling of Exceptions, we keep
TRY,Catch Block and catch the exception and handle those
ones.
| Is This Answer Correct ? | 23 Yes | 4 No |
Answer / 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 |
Answer / lucky
try {
// UR code
}
catch(Exception exMsg)
{
}
catch(ApplicationException exAppMsg)
{
}
by this u can get any type of error messages, if ur component have implemented with throwing Application or Throw Exception, those will come to u, where u r calling.
| Is This Answer Correct ? | 1 Yes | 3 No |
Answer / karthik
use throw and catch to handle exception from component
| Is This Answer Correct ? | 2 Yes | 8 No |
What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?
What meant of assembly & global assembly cache (gac) & Meta data
What is ASP.NET MVC?
What is razor code?
explain what does .edmx file contains?
can we call the garbage collector to run explicicitly?
When i am using Ajax controls (updatepanel),Is page events all are executed or only some events are executed?which page events are executed?
Does the .NET Framework have in-built support for serialization?
How to bind table coloum with gridview column
3 Answers Sypher Technologies,
What is definingquery in entity framework? : Entity framework
What is a serverside technology? what is a clientside technology? what is a clientserver technology? what is a internet based application? what is a intranet based application? what is a windows application? what is a console application? Difference between console application and windows application?
How do you initiate a string without escaping each backslash ?