473,405 Members | 2,279 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Method Exception information

PGP
Where will i look to find potential exceptions thrown by a method? I am
looking at Object Browser and couldnt find any, MSDN doesnt seem to provide
a consistent format for this either. Any advice would be appreciated.
Apr 2 '07 #1
6 1472
Hello PGP" priyesh_do_not_reply,

Which method, for example?
u cat use reflector either.
If u found nothing it can be that method throws nothing

---
WBR, Michael Nemtsev [C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

PWhere will i look to find potential exceptions thrown by a method? I
Pam looking at Object Browser and couldnt find any, MSDN doesnt seem
Pto provide a consistent format for this either. Any advice would be
Pappreciated.
P>
Apr 2 '07 #2
There is no way to know that.
"PGP" <priyesh_do_not_replywrote in message
news:uJ**************@TK2MSFTNGP05.phx.gbl...
Where will i look to find potential exceptions thrown by a method? I am
looking at Object Browser and couldnt find any, MSDN doesnt seem to
provide a consistent format for this either. Any advice would be
appreciated.

Apr 2 '07 #3
Hi,

Sorry, wrong key combination :)

As I said, there is no way to know that.

You could use reflector and try to see the method and see what exception the
method throw, but even so if the method use other methods these could also
throw exceptions (not catched by your method) that you will have to deal
with.

"PGP" <priyesh_do_not_replywrote in message
news:uJ**************@TK2MSFTNGP05.phx.gbl...
Where will i look to find potential exceptions thrown by a method? I am
looking at Object Browser and couldnt find any, MSDN doesnt seem to
provide a consistent format for this either. Any advice would be
appreciated.

Apr 2 '07 #4
PGP
Which method, for example?
I was looking at XMLSerializer.Deserialize. I have a scenario where a class
loads internal data from a config xml and was wondering what exception to
catch if load fails.
Apr 2 '07 #5
PGP
As I said, there is no way to know that.
I guess it's safe to catch the base Exception then.
Apr 2 '07 #6
Hi,

Yes, you can always catch Exception ,

I have to confess I do most of the times :-)

"PGP" <priyesh_do_not_replywrote in message
news:uK**************@TK2MSFTNGP04.phx.gbl...
>As I said, there is no way to know that.
I guess it's safe to catch the base Exception then.

Apr 3 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mike Schilling | last post by:
I have some code that calls methods reflectively (the method called and its parameters are determined by text received in a SOAP message, and I construct a map from strings to MethodInfos). The...
1
by: Greif | last post by:
I am trying to call a static method within a sealed class. However, the wrong method keeps getting called instead. In a seperate class I am calling the following code: LogHelper.Log("Sample...
1
by: Mark Miller | last post by:
I just recently started getting the above error on a page I am posting MULTIPART/FORM-DATA. We have SoftArtisans FileUp component and Filter installed on the server in question and up until a day...
1
by: Phil Sandler | last post by:
Hello all, Thanks in advance for any help with this. I am trying to get sample code to run from Michael Russell's excellent article on removing whitespace:...
2
by: GlennLanier | last post by:
Hello, I've searched the forums and can't find an answer -- if it i there, kindly point me in that direction. I would like to simulate a browser POSTing a FORM and be able to pars the response....
3
by: Koen | last post by:
Hi, I have been reading a bit basic stuff about method attributes in C#, and I wanted to build the following functionality with it: if a method has the custom attribute <LogException> the...
5
by: Earl | last post by:
I need to call a method on an owned child form, and am wondering if the best way of doing this is to capture the Closing event of the form that passes control back to the form where I have the...
0
by: Aled G | last post by:
Hi, After upgrading to .net 3.5, my web app is giving the error on all .aspx pages: " Method not found: 'System.Security.NamedPermissionSet System.Web.HttpRuntime.GetNamedPermissionSet()' " ...
3
by: Fred | last post by:
Hello, I get this strange error in the code of a very simple aspx page just called to download a file. Do you have any idea about it ? (The same code works fine on another server) Server...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.