Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8033659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:45:58+00:00 2026-06-05T01:45:58+00:00

Is there a methodology — and if so, what is it — for finding

  • 0

Is there a methodology — and if so, what is it — for finding out what exceptions may be thrown by a particular statement?

e.g., given the following code:

String substr = SelectedFileName.Substring(DATE_BEGIN_POS, DATE_LENGTH);
return DateTime.Parse(substr);

…how would I know what exception[s] might be thrown by the second line? You would think one could highlight the line, and select something from the context menu to supply this/these…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:46:00+00:00Added an answer on June 5, 2026 at 1:46 am

    As far as I’m aware there isn’t a way of finding this out other than looking on MSDN: http://msdn.microsoft.com/en-us/library/1k1skd40.aspx

    The easy/lazy/C# way of doing this would just to “catch (Exception e)” and deal with it as the generic exception type. You have all of the information you need in that type for most exceptions anyway. Exception handling should only really be used for logging/promoting, so IMHO knowing that your DateTime.Parse can throw either a FormatException or ArguementNullException is pointless (to me).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any specific methodology followed to specify a language for given grammar ??
I have two Windows services written in C# following the same patterns and methodology.
Is there a helper method/object/methodology for getting a reference to a Zend_Application 's config
I have a doubt on the design methodology that why we implement the code
I'm struggling to understand command redirection/reuse... I understand there's the <(...) <(...) methodology and
I'm wondering if there are any algorithms out there written in Java currently for
Is there any methodology/algorithm for computing phonemes and chronemes of a word(text and not
As we know there are several methodology for http connection. My social network application
ORIGINAL POST There are a ton of articles out there and a lot more
Question : Is there a service or a system methodology that would allow someone

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.