Checked exception compensation - compiler option?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bear

    #1

    Checked exception compensation - compiler option?

    Hello there

    Is there a compiler option which outputs warnings about exceptions that are
    not caught in VS2003?


    --
    Best regards

    Bjoern D. Rasmussen



  • Jon Skeet [C# MVP]

    #2
    Re: Checked exception compensation - compiler option?

    Bear <bdr@NOSPAM.sol .dk> wrote:[color=blue]
    > Is there a compiler option which outputs warnings about exceptions that are
    > not caught in VS2003?[/color]

    No, because methods don't declare which exceptions they can throw.
    There's nothing in .NET like Java's checked exceptions.

    --
    Jon Skeet - <skeet@pobox.co m>
    Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

    If replying to the group, please do not mail me too

    Comment

    • Jon Skeet [C# MVP]

      #3
      Re: Checked exception compensation - compiler option?

      <"Alvin Bruney" <.>> wrote:

      <snip>
      [color=blue]
      > begin 666 c.jpg[/color]

      <snip>

      *Please* stop including pictures with all of your posts. It's entirely
      unnecessary and very bad netiquette.

      --
      Jon Skeet - <skeet@pobox.co m>
      Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

      If replying to the group, please do not mail me too

      Comment

      • Alvin Bruney

        #4
        Re: Checked exception compensation - compiler option?

        Ignore this guy he is spoofing my email account. For credibility purposes I
        suppose.

        --


        -----------
        Got TidBits?
        Get it here: www.networkip.net/tidbits
        "Alvin Bruney" <.> wrote in message
        news:eFJ8Uc2qDH A.2188@TK2MSFTN GP11.phx.gbl...[color=blue]
        > Can't you use watson then find out what exception was uncaught then build
        > that into a new version?
        >
        >
        >
        > "Bear" <bdr@NOSPAM.sol .dk> wrote in message
        > news:3fb6037f$0 $4382$ba624c82@ nntp03.dk.telia .net...[color=green]
        > > Hello there
        > >
        > > Is there a compiler option which outputs warnings about exceptions that[/color]
        > are[color=green]
        > > not caught in VS2003?
        > >
        > >
        > > --
        > > Best regards
        > >
        > > Bjoern D. Rasmussen
        > > www.bearware.dk
        > >
        > >[/color]
        >
        >
        >[/color]


        Comment

        Working...