Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Worst Exception!!

Worst Exception!!

Scheduled Pinned Locked Moved The Lounge
performancequestion
92 Posts 49 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A AlphaDeltaTheta

    What's in your mind is the worst exception in programming?? My favourite is Out of Memory!

    Sander RosselS Offline
    Sander RosselS Offline
    Sander Rossel
    wrote on last edited by
    #32

    There are quite some Exceptions I really don't like... NullReference, String or binary data would be truncated, that sort of stuff. Mostly because the error doesn't indicate what was null or what data would be truncated. But the worst of them all, mostly because I've seen it not handled correctly way to often, See the inner Exception for details... Ok, so where is that inner exception? Not in some logging, not in some message box, actually it is nowhere! The programmer programming this code did not ever stop to think about the fact that an Exception may have an inner exception. Good luck finding out what's wrong... :sigh: Now comes the fun part. I fixed it and the first Exception I got had an inner exception in the inner exception... Luckily I log exceptions recursively for these cases :)

    It's an OO world.

    public class Naerling : Lazy<Person>{
    public void DoWork(){ throw new NotImplementedException(); }
    }

    1 Reply Last reply
    0
    • pkfoxP pkfox

      Back in my dark COBOL days "Abnormal abend", that could indicate anything.

      When the going gets weird the weird turn pro - Hunter S Thompson RIP

      S Offline
      S Offline
      sir_download_alot
      wrote on last edited by
      #33

      But usually you got an error code and, if didn't helped, a dump which could be analysed. I got mostly 0C7 errors :-)

      1 Reply Last reply
      0
      • J Jorgen Andersson

        BSOD

        Be excellent to each other. And... PARTY ON, DUDES! Abraham Lincoln

        S Offline
        S Offline
        sir_download_alot
        wrote on last edited by
        #34

        Is this the same like BYOD? What I really like is BYOB (bring your own bottle) :-)

        J 1 Reply Last reply
        0
        • A AlphaDeltaTheta

          What's in your mind is the worst exception in programming?? My favourite is Out of Memory!

          S Offline
          S Offline
          sir_download_alot
          wrote on last edited by
          #35

          We had an external consultant, and he implemented a very meaningfull error message for all type of errors: "An Error occured"

          S 1 Reply Last reply
          0
          • J Joezer BH

            Not an exception but with the same flavour. During windows start-up device detection: "Keyboard error or no keyboard present." and below the well known "Press F1 to continue or ESC to enter SETUP."

            Never underestimate the difference you can make in the lives of others.

            B Offline
            B Offline
            BobJanova
            wrote on last edited by
            #36

            That is so you fix the problem (i.e. plug in a keyboard) before trying to use the computer.

            A 1 Reply Last reply
            0
            • A AlphaDeltaTheta

              What's in your mind is the worst exception in programming?? My favourite is Out of Memory!

              B Offline
              B Offline
              BobJanova
              wrote on last edited by
              #37

              "There was an error reading the document" – Adobe's PDF reader when there is an error in your PDF, anywhere in the document. It won't tell you which object or page the error was on, never mind what you actually did wrong.

              T 1 Reply Last reply
              0
              • P Pete OHanlon

                I can't remember.

                I was brought up to respect my elders. I don't respect many people nowadays.
                CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

                S Offline
                S Offline
                Sentenryu
                wrote on last edited by
                #38

                I (think I) see what you did there :-\

                I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p) "Given the chance I'd rather work smart than work hard." - PHS241 "'Sophisticated platform' typically means 'I have no idea how it works.'"

                P 1 Reply Last reply
                0
                • S Sentenryu

                  I (think I) see what you did there :-\

                  I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p) "Given the chance I'd rather work smart than work hard." - PHS241 "'Sophisticated platform' typically means 'I have no idea how it works.'"

                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #39

                  The fact you commented, says you did. Obviously, you and I are more subtle than the others. :-D

                  I was brought up to respect my elders. I don't respect many people nowadays.
                  CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

                  K 1 Reply Last reply
                  0
                  • L LloydA111

                    I'm sure there are lots, however, the one that is currently getting on my nerves is "File not found" being thrown by one of my Python scripts when I try to import a library, despite the fact I damn well know it's installed and working. Python seems very flakey when it comes to libraries, particularly on Windows. One day it works the next it doesn't.

                           .-.
                          |o,o|
                       ,| \_\\=/\_      .-""-.
                       ||/\_/\_\\\_\\    /\[\] \_ \_\\
                       |\_/|(\_)|\\\\  \_|\_o\_LII|\_
                          \\.\_./// / | ==== | \\
                          |\\\_/|"\` |\_| ==== |\_|
                          |\_|\_|    ||" ||  ||
                          |-|-|    ||LI  o ||
                          |\_|\_|    ||'----'||
                         /\_/ \\\_\\  /\_\_|    |\_\_\\
                    
                    C Offline
                    C Offline
                    CHill60
                    wrote on last edited by
                    #40

                    Quote:

                    One day it works the next it doesn't.

                    Sounds a bit like me! :laugh:

                    1 Reply Last reply
                    0
                    • L Lost User

                      Those are easy to analyze and fix though..

                      M Offline
                      M Offline
                      Michael Haines
                      wrote on last edited by
                      #41

                      Yes they are, but when they happen, it means I screwed up as the developer. So, I really hate to see them. "I am rarely happier than when spending entire day programming my computer to perform automatically a task that it would otherwise take me a good ten seconds to do by hand." - Douglas Adams

                      1 Reply Last reply
                      0
                      • pkfoxP pkfox

                        Back in my dark COBOL days "Abnormal abend", that could indicate anything.

                        When the going gets weird the weird turn pro - Hunter S Thompson RIP

                        J Offline
                        J Offline
                        jibalt
                        wrote on last edited by
                        #42

                        Do you work in the Department of Redundancy department? ABEND means "Abnormal End" ... there was no "Abnormal ABEND".

                        pkfoxP 1 Reply Last reply
                        0
                        • A AlphaDeltaTheta

                          What's in your mind is the worst exception in programming?? My favourite is Out of Memory!

                          G Offline
                          G Offline
                          GerVenson
                          wrote on last edited by
                          #43

                          The Operationen was completed succsesfully head vs wall

                          1 Reply Last reply
                          0
                          • B BobJanova

                            "There was an error reading the document" – Adobe's PDF reader when there is an error in your PDF, anywhere in the document. It won't tell you which object or page the error was on, never mind what you actually did wrong.

                            T Offline
                            T Offline
                            theliberator
                            wrote on last edited by
                            #44

                            Oracle also has a really informative kind of Exception: ORA-00600: internal error code, arguments: [12333], [205], [70], [164], [], [], [], []

                            1 Reply Last reply
                            0
                            • A AlphaDeltaTheta

                              What's in your mind is the worst exception in programming?? My favourite is Out of Memory!

                              B Offline
                              B Offline
                              Breamore Boy
                              wrote on last edited by
                              #45

                              Error number 5692305182344859072314609

                              1 Reply Last reply
                              0
                              • S sir_download_alot

                                Is this the same like BYOD? What I really like is BYOB (bring your own bottle) :-)

                                J Offline
                                J Offline
                                Jorgen Andersson
                                wrote on last edited by
                                #46

                                In my circles BYOB would definitely be an exception. Except as a present.

                                Be excellent to each other. And... PARTY ON, DUDES! Abraham Lincoln

                                1 Reply Last reply
                                0
                                • A AlphaDeltaTheta

                                  What's in your mind is the worst exception in programming?? My favourite is Out of Memory!

                                  A Offline
                                  A Offline
                                  aayawa
                                  wrote on last edited by
                                  #47

                                  Apple used to give ones like An error of type 10 occurred because an error of type 10 occurred.

                                  1 Reply Last reply
                                  0
                                  • J Jacquers

                                    object reference not set to an instance of an object index is outside the bounds of the array

                                    T Offline
                                    T Offline
                                    Tomz_KV
                                    wrote on last edited by
                                    #48

                                    Jacquers wrote:

                                    object reference not set to an instance of an object

                                    This exception message is not useful at all. It would be nice if it gives the object name.

                                    TOMZ_KV

                                    K 1 Reply Last reply
                                    0
                                    • A AlphaDeltaTheta

                                      What's in your mind is the worst exception in programming?? My favourite is Out of Memory!

                                      G Offline
                                      G Offline
                                      gjpt
                                      wrote on last edited by
                                      #49

                                      Keyboard error Press F1

                                      A 1 Reply Last reply
                                      0
                                      • A AlphaDeltaTheta

                                        What's in your mind is the worst exception in programming?? My favourite is Out of Memory!

                                        L Offline
                                        L Offline
                                        Lost User
                                        wrote on last edited by
                                        #50

                                        I guess the worst exception I have seen is the "uncaught exception"... That one who calls std::terminate() and then calls abort() :P Saludos!! ____ichr@mm :wq

                                        1 Reply Last reply
                                        0
                                        • A AlphaDeltaTheta

                                          What's in your mind is the worst exception in programming?? My favourite is Out of Memory!

                                          K Offline
                                          K Offline
                                          KLSmith
                                          wrote on last edited by
                                          #51

                                          Seems to me that worst is being interpreted as either: nonsensical, useless (programmer too lazy to write a meaningful message), or a dreaded message, where something bad really did happen. Here is a nonsensical one: One recent message in my Windows-7 system event log was The service failed to start. Reason: The service finished successfully.

                                          A 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups