Page 1 of 2

Generic Errors - need help

Posted: Fri Jun 04, 2004 8:33 am
by fastfingertips
I'm building a new error class and i need to create generic error list. Unfortunatelly for me i have a bad imagination and i could not find more then three:

Code: Select all

<?php
    $this->errIndex[0]="Database Server Error.";
    $this->errIndex[1]="Incorrect Parameter Format.";
    $this->errIndex[2]="Incorrect Parameter Received.";
?>

Can you help me with more error messages please?

Posted: Fri Jun 04, 2004 11:00 am
by Joe
$this->errIndex[0]="Database Server Error.";
$this->errIndex[1]="Incorrect Parameter Format.";
$this->errIndex[2]="Incorrect Parameter Received.";
$this->errIndex[3]="Incorrect Syntax.";
$this->errIndex[4]="Command not supported";
$this->errIndex[5]="Undefined variable set";
$this->errIndex[6]="Unexpected char";

Hmm not sure what you mean entirely but I was bored so hey, lol

Posted: Fri Jun 04, 2004 11:12 am
by Saethyr
$this->errIndex[0]="Database Server Error.";
$this->errIndex[1]="Incorrect Parameter Format.";
$this->errIndex[2]="Incorrect Parameter Received.";
$this->errIndex[3]="Incorrect Syntax.";
$this->errIndex[4]="Command not supported";
$this->errIndex[5]="Undefined variable set";
$this->errIndex[6]="Unexpected char";

Code: Select all

$this->errIndex[7]="Undefined Function";
$this->errIndex[8]="Unknown Error"; //Default Error type if using a switch

Posted: Fri Jun 04, 2004 11:17 am
by Joe
I like the last array element you have there Saethyr, lol Now why didn't i think of that!

Posted: Fri Jun 04, 2004 11:32 am
by markl999

Code: Select all

$this->errIndex[9]="You Suck"; //generic error

Posted: Fri Jun 04, 2004 11:32 am
by dull1554
i got the best one ever.....

Code: Select all

$this->errIndex[9]="PHP is being gay as all hell, go find a hammer and throw at server.....";

Posted: Fri Jun 04, 2004 11:39 am
by Joe
$this->errIndex[9]="Im a bad coder. So sue me";

Not to polite!

Posted: Fri Jun 04, 2004 10:40 pm
by d3ad1ysp0rk
error! 3 errIndex[9] values!

::shutdown mode::

Posted: Sat Jun 05, 2004 1:46 am
by fastfingertips
Hey people i have a low imagination but yours is to high.

Also markl999 if you have something clever to post please do it otherwise keep you daily words inside of your limited brain, do not spam my thread with useless words (you may also try to read the rules of the forum).

Posted: Sat Jun 05, 2004 3:12 am
by feyd
I'm pretty unimaginative when it comes to error codes and the like so:
the many (2897) base error codes from Windows (in ready to use array form)

a bunch are useless, but many could be useful..


[edit] Here's their most generic errors:

Code: Select all

Array
(
	'E_UNEXPECTED' => 'Catastrophic failure',
	'E_NOTIMPL' => 'Not implemented',
	'E_OUTOFMEMORY' => 'Ran out of memory',
	'E_INVALIDARG' => 'One or more arguments are invalid',
	'E_NOINTERFACE' => 'No such interface supported',
	'E_POINTER' => 'Invalid pointer',
	'E_HANDLE' => 'Invalid handle',
	'E_ABORT' => 'Operation aborted',
	'E_FAIL' => 'Unspecified error',
	'E_ACCESSDENIED' => 'General access denied error',
	'E_NOTIMPL' => 'Not implemented',
	'E_OUTOFMEMORY' => 'Ran out of memory',
	'E_INVALIDARG' => 'One or more arguments are invalid',
	'E_NOINTERFACE' => 'No such interface supported',
	'E_POINTER' => 'Invalid pointer',
	'E_HANDLE' => 'Invalid handle',
	'E_ABORT' => 'Operation aborted',
	'E_FAIL' => 'Unspecified error',
	'E_ACCESSDENIED' => 'General access denied error',
	'E_PENDING' => 'The data necessary to complete this operation is not yet available.',
);

Posted: Sat Jun 05, 2004 3:25 am
by markl999
Also markl999 if you have something clever to post please do it otherwise keep you daily words inside of your limited brain, do not spam my thread with useless words (you may also try to read the rules of the forum).
Was there any need for that? My post was obviously intended to be light hearted and in good humour and didn't require such a response from you. Please point me to the specific forum rule i broke.
(I was going to ignore your reply but my limited brain wouldn't let me)

Posted: Sat Jun 05, 2004 4:16 am
by fastfingertips
You Suck <- Are you using this every day? I was politely and i'm trying to make a thing, a serious thing. So please appologise but i cannot understand your humour.

Posted: Sat Jun 05, 2004 9:05 am
by d3ad1ysp0rk
Just making sure, you realize he was talking about the user, not you, right?

Posted: Sat Jun 05, 2004 11:59 am
by Joe
I think that was pathetic what you said to mark. Hes only having a laugh like the rest of us.

Posted: Sat Jun 05, 2004 1:12 pm
by evilmonkey
Yeah, I agree. How about the guy that said php was bieng extremely gay? Why didn't you yell at him? Come on man, lighten up.

Cheers!