POV-Ray : Newsgroups : povray.off-topic : Error mesage Server Time
6 Nov 2024 14:27:25 EST (-0500)
  Error mesage (Message 1 to 10 of 36)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Doctor John
Subject: Error mesage
Date: 1 May 2008 12:30:15
Message: <4819f017$1@news.povray.org>
http://www.computerweekly.com/blogs/it-downtime-blog/2008/04/error-messages-you-never-want-1.html

:-)

-- 
I will be brief but not nearly so brief as Salvador Dali, who gave the
world's shortest speech. He said, "I will be so brief I am already
finished," then he sat down.


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Error mesage
Date: 1 May 2008 14:08:59
Message: <481a073b$1@news.povray.org>

>
http://www.computerweekly.com/blogs/it-downtime-blog/2008/04/error-messages-you-never-want-1.html

CodeProject has an interesting error message I stumbled upon a few times:

"Error Page Error. err...

Unfortunately it seems that our error handling page has, ironically, an 
error. It's going to be one of those days."


Post a reply to this message

From: Orchid XP v8
Subject: Re: Error mesage
Date: 1 May 2008 14:27:25
Message: <481a0b8d@news.povray.org>
Unfortunately, it has become common for programs to give messages such 
as "an unexpected error has occurred. Sorry."

[BTW, WTF is an *expected* error anyway??]

When I was at college, this would _never_ do. Programs are expected to 
"fail gracefully" - and they are expected to provide *meaningful* error 
condition descriptions. Any program that didn't would be harshly 
down-marked. The people at that college may not have known anything 
about Pascal, but they knew about program design! o_O

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From:  
Subject: Re: Error mesage
Date: 1 May 2008 14:51:13
Message: <481a1121$1@news.povray.org>
"Orchid XP v8" <voi### [at] devnull> wrote

> Unfortunately, it has become common for programs to give messages such
> as "an unexpected error has occurred. Sorry."
>
> [BTW, WTF is an *expected* error anyway??]

Actually, the above *is* an example of an expected error (the programmer put
that message in, didn't he?). Unexpected errors either go unnoticed or crash
the system.

> When I was at college, this would _never_ do. Programs are expected to
> "fail gracefully" - and they are expected to provide *meaningful* error
> condition descriptions.

Well, real life begins when college ends.


Post a reply to this message

From: Orchid XP v8
Subject: Re: Error mesage
Date: 1 May 2008 14:55:55
Message: <481a123b$1@news.povray.org>
>> When I was at college, this would _never_ do. Programs are expected to
>> "fail gracefully" - and they are expected to provide *meaningful* error
>> condition descriptions.
> 
> Well, real life begins when college ends.

Not necessarily. I'm still waiting for my "real" life to begin... :-/

BTW, irony: At college, we had a C compiler that used to give us all 
this error message, and to this day nobody knows what that message 
actually means. Including the tutors. Hmm. ;-)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Error mesage
Date: 1 May 2008 15:13:34
Message: <481a165e@news.povray.org>

> BTW, irony: At college, we had a C compiler that used to give us all 
> this error message, and to this day nobody knows what that message 
> actually means. Including the tutors. Hmm. ;-)

Yay for open source. You could have looked into the compiler code :)


Post a reply to this message

From: Warp
Subject: Re: Error mesage
Date: 1 May 2008 16:06:06
Message: <481a22ae@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
> [BTW, WTF is an *expected* error anyway??]

  For example incorrect input, network connection problems, hardware
failures (such as inability to read from disc), etc. etc.

  Even seen eg. those 404 messages? That's an expected error which
sometimes happens.

  An unexpected error is something which shouldn't happen but happened
anyways (instead of the program crashing, the unexpected situation was
caught).

-- 
                                                          - Warp


Post a reply to this message

From: Warp
Subject: Re: Error mesage
Date: 1 May 2008 16:08:41
Message: <481a2348@news.povray.org>
. wrote:
> "Orchid XP v8" <voi### [at] devnull> wrote

> > Unfortunately, it has become common for programs to give messages such
> > as "an unexpected error has occurred. Sorry."
> >
> > [BTW, WTF is an *expected* error anyway??]

> Actually, the above *is* an example of an expected error (the programmer put
> that message in, didn't he?). Unexpected errors either go unnoticed or crash
> the system.

  Wrong. Unexpected errors are things which should never happen, and if
they do the indicate a bug in the program.
  Typical example:

switch(something)
{
 case A: ...
 case B: ...
 ...

 default:
    error("Unexpected error happened.");
    // This should never happen because all possible cases were dealt above.
    // If we ever get here, it's a clear sign of a bug in the program.
}

-- 
                                                          - Warp


Post a reply to this message

From:  
Subject: Re: Error mesage
Date: 1 May 2008 19:56:17
Message: <481a58a1$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message
news:481a2348@news.povray.org...
> . wrote:
> > "Orchid XP v8" <voi### [at] devnull> wrote

> > > Unfortunately, it has become common for programs to give messages such
> > > as "an unexpected error has occurred. Sorry."
> > >
> > > [BTW, WTF is an *expected* error anyway??]

> > Actually, the above *is* an example of an expected error (the programmer
put
> > that message in, didn't he?). Unexpected errors either go unnoticed or
crash
> > the system.

>  Wrong. Unexpected errors are things which should never happen, and if
>  they do

Want to rephrase that? <g>

> the indicate a bug in the program.
>   Typical example:
>
> switch(something)
> {
>  case A: ...
>  case B: ...
>  ...
>
>  default:
>     error("Unexpected error happened.");
>     // This should never happen because all possible cases were dealt
above.
>     // If we ever get here, it's a clear sign of a bug in the program.
> }

No, the error is either expected, but programmer shows bad form (ie, the
programmer anticipates "illegal" input but doesn't check it at the procedure
entry, and instead does it inside program logic) or a pointless exercise, as
in:

If ((X=True)=True)=True Then ... //just making sure!...

or

If X=4 Then
   ...
Else if X<>4 Then
  ...
Else
  Exception()..

Sure, QM, if nothing else, tells us that there are no guarantees, but it's
pointless to expect an error where it cannot logically be, or raise
exceptions in places that cannot logically be reached. Conversely, under
abnormal circumstances, all opcodes are suspect.

I agree, however, that "unexpected errors" are bugs.

PS. Yes, I know, some programming languages are perverse enough that the
code above makes sense.


Post a reply to this message

From:  
Subject: Re: Error mesage
Date: 1 May 2008 20:11:53
Message: <481a5c49$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message
news:481a22ae@news.povray.org...
> Orchid XP v8 <voi### [at] devnull> wrote:
> > [BTW, WTF is an *expected* error anyway??]

>   For example incorrect input, network connection problems, hardware
> failures (such as inability to read from disc), etc. etc.
>
>   Even seen eg. those 404 messages? That's an expected error which
> sometimes happens.

404 is not an error on the part of the server but a perfectly well defined
and normal response. If I ask you for a glass of wine and you tell me
there's no wine, that doesn't indiate an error on your part. An error would
be if you tell me "green" in response to the question "what colour is
wine?". One cannot even say it's an error on part of the client - it depends
on context. If the client is, say, purposefully sending a bunch of random or
semi random requests (maybe DOS attack), then it's not in error when
requesting nonexistant pages. Programmers call responses like 404 errors out
of sloppiness or laziness.


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.