473,395 Members | 1,473 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,395 software developers and data experts.

Examining Classes

Is there a VS.NET way to know what exceptions a class is capable of
throwing?
Jul 21 '05 #1
11 1162
You can use Lutz Roeder's .Net Reflector
http://www.aisto.com/roeder/dotnet

It' works great and best of all, its free.

"Scott M." <No****@NoSpam.com> wrote in message
news:OX*************@TK2MSFTNGP12.phx.gbl...
Is there a VS.NET way to know what exceptions a class is capable of
throwing?

Jul 21 '05 #2
No, sorry, I'm asking about anything built into VS.NET.
"David Young" <RE******************@yahoo.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
You can use Lutz Roeder's .Net Reflector
http://www.aisto.com/roeder/dotnet

It' works great and best of all, its free.

"Scott M." <No****@NoSpam.com> wrote in message
news:OX*************@TK2MSFTNGP12.phx.gbl...
Is there a VS.NET way to know what exceptions a class is capable of
throwing?


Jul 21 '05 #3
Perhaps I misunderstood your question then. I suppose as a blanket answer,
I could say that you can use the System.Reflection namespace to find out
just about anything you want to know about a managed assembly.

"Scott M." <No****@NoSpam.com> wrote in message
news:eQ**************@TK2MSFTNGP15.phx.gbl...
No, sorry, I'm asking about anything built into VS.NET.
"David Young" <RE******************@yahoo.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
You can use Lutz Roeder's .Net Reflector
http://www.aisto.com/roeder/dotnet

It' works great and best of all, its free.

"Scott M." <No****@NoSpam.com> wrote in message
news:OX*************@TK2MSFTNGP12.phx.gbl...
Is there a VS.NET way to know what exceptions a class is capable of
throwing?



Jul 21 '05 #4
Thanks, but no. I'm asking if there is a function of VS.NET that can give
me this information. I understand that I can use programmatic syntax using
reflection to get this information, but I want to know if there is something
in the IDE that can provide me with a list of the exceptions that a class is
capable of throwing.
"David Young" <RE******************@yahoo.com> wrote in message
news:Oi****************@TK2MSFTNGP12.phx.gbl...
Perhaps I misunderstood your question then. I suppose as a blanket
answer,
I could say that you can use the System.Reflection namespace to find out
just about anything you want to know about a managed assembly.

"Scott M." <No****@NoSpam.com> wrote in message
news:eQ**************@TK2MSFTNGP15.phx.gbl...
No, sorry, I'm asking about anything built into VS.NET.
"David Young" <RE******************@yahoo.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
> You can use Lutz Roeder's .Net Reflector
> http://www.aisto.com/roeder/dotnet
>
> It' works great and best of all, its free.
>
>
>
> "Scott M." <No****@NoSpam.com> wrote in message
> news:OX*************@TK2MSFTNGP12.phx.gbl...
>> Is there a VS.NET way to know what exceptions a class is capable of
>> throwing?
>>
>>
>
>



Jul 21 '05 #5
What you are really being told is no.

You have to understand that exceptions are thrown in code. To find them you
have to dissect the code.

If you do not want to write a dissector (using reflection) yourself, then
you will need to use a dissector that someone has written.
"Scott M." <No****@NoSpam.com> wrote in message
news:uM*************@TK2MSFTNGP10.phx.gbl...
Thanks, but no. I'm asking if there is a function of VS.NET that can give
me this information. I understand that I can use programmatic syntax
using reflection to get this information, but I want to know if there is
something in the IDE that can provide me with a list of the exceptions
that a class is capable of throwing.
"David Young" <RE******************@yahoo.com> wrote in message
news:Oi****************@TK2MSFTNGP12.phx.gbl...
Perhaps I misunderstood your question then. I suppose as a blanket
answer,
I could say that you can use the System.Reflection namespace to find out
just about anything you want to know about a managed assembly.

"Scott M." <No****@NoSpam.com> wrote in message
news:eQ**************@TK2MSFTNGP15.phx.gbl...
No, sorry, I'm asking about anything built into VS.NET.
"David Young" <RE******************@yahoo.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
> You can use Lutz Roeder's .Net Reflector
> http://www.aisto.com/roeder/dotnet
>
> It' works great and best of all, its free.
>
>
>
> "Scott M." <No****@NoSpam.com> wrote in message
> news:OX*************@TK2MSFTNGP12.phx.gbl...
>> Is there a VS.NET way to know what exceptions a class is capable of
>> throwing?
>>
>>
>
>



Jul 21 '05 #6
Unlike Java you don't declare what exceptions could be thrown. As a result
you likely won't find this in .NET (other by than by dissecting the code as
mentioned by Stephany).

You'll find this though in the method documentation. There is a table with
this information in the method description.

Patrice

--

"Scott M." <No****@NoSpam.com> a écrit dans le message de
news:OX*************@TK2MSFTNGP12.phx.gbl...
Is there a VS.NET way to know what exceptions a class is capable of
throwing?

Jul 21 '05 #7
The documentation on this is sparse to say the least. I'm not familiar
with the declarative manner in which Java exposes exceptions, but from
what I gather it would be cool if .Net ()'s did the same...

Jul 21 '05 #8
I do understand what you have said. I simply wanted to know if VS.NET had
such a "dissector" available as an IDE feature that perhaps I hadn't
stumbled across.

"Stephany Young" <noone@localhost> wrote in message
news:ec**************@TK2MSFTNGP14.phx.gbl...
What you are really being told is no.

You have to understand that exceptions are thrown in code. To find them
you have to dissect the code.

If you do not want to write a dissector (using reflection) yourself, then
you will need to use a dissector that someone has written.
"Scott M." <No****@NoSpam.com> wrote in message
news:uM*************@TK2MSFTNGP10.phx.gbl...
Thanks, but no. I'm asking if there is a function of VS.NET that can
give me this information. I understand that I can use programmatic
syntax using reflection to get this information, but I want to know if
there is something in the IDE that can provide me with a list of the
exceptions that a class is capable of throwing.
"David Young" <RE******************@yahoo.com> wrote in message
news:Oi****************@TK2MSFTNGP12.phx.gbl...
Perhaps I misunderstood your question then. I suppose as a blanket
answer,
I could say that you can use the System.Reflection namespace to find out
just about anything you want to know about a managed assembly.

"Scott M." <No****@NoSpam.com> wrote in message
news:eQ**************@TK2MSFTNGP15.phx.gbl...
No, sorry, I'm asking about anything built into VS.NET.
"David Young" <RE******************@yahoo.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
> You can use Lutz Roeder's .Net Reflector
> http://www.aisto.com/roeder/dotnet
>
> It' works great and best of all, its free.
>
>
>
> "Scott M." <No****@NoSpam.com> wrote in message
> news:OX*************@TK2MSFTNGP12.phx.gbl...
>> Is there a VS.NET way to know what exceptions a class is capable of
>> throwing?
>>
>>
>
>



Jul 21 '05 #9
> You'll find this though in the method documentation. There is a table with
this information in the method description.


But not for custom classes.
Jul 21 '05 #10
Scott,

Probably I understand you wrong, however build in is the object browser.

Cor
Jul 21 '05 #11
The OB doesn't provide an "automatic" way of listing exceptions of a class.
You must go digging through the class yourself.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:ed**************@TK2MSFTNGP15.phx.gbl...
Scott,

Probably I understand you wrong, however build in is the object browser.

Cor

Jul 21 '05 #12

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

Similar topics

1
by: Bob Rock | last post by:
Hello, in the last few days I've made my first few attempts at creating mixed C++ managed-unmanaged assemblies and looking aftwerwards with ILDASM at what is visible in those assemblies from a...
9
by: Jack | last post by:
Hello I have a library of calculationally intensive classes that is used both by a GUI based authoring application and by a simpler non-interactive rendering application. Both of these...
2
by: joye | last post by:
Hello, My question is how to use C# to call the existing libraries containing unmanaged C++ classes directly, but not use C# or managed C++ wrappers unmanaged C++ classes? Does anyone know how...
18
by: Edward Diener | last post by:
Is the packing alignment of __nogc classes stored as part of the assembly ? I think it must as the compiler, when referencing the assembly, could not know how the original data is packed otherwise....
4
by: Howard Kaikow | last post by:
Does .NET facilitate code for examining the content of the raw sectors on a CD-ROM, as well as the track/session info? Example code? -- http://www.standards.com/; See Howard Kaikow's web site.
17
by: rurpy | last post by:
Is there a function/class/module/whatever I can use to look at objects? I want something that will print the object's value (if any) in pretty-printed form, and list all it's attributes and their...
15
by: Scott M. | last post by:
Is there a VS.NET way to know what exceptions a class is capable of throwing?
6
by: ivan.leben | last post by:
I want to write a Mesh class using half-edges. This class uses three other classes: Vertex, HalfEdge and Face. These classes should be linked properly in the process of building up the mesh by...
0
by: ivan.leben | last post by:
I am writing this in a new thread to alert that I found a solution to the problem mentioned here: http://groups.google.com/group/comp.lang.c++/browse_thread/thread/7970afaa089fd5b8 and to avoid...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.