Raising a custom error -- how?
| From: | Sqlcoders.com Programming Dept | Date: | Mon, 13 May 2002 00:55:00 +0000 |
| Subject: | Raising a custom error -- how? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-97218@lists.php.net to get a copy of this message | ||
Hiya,
I want to be able to raise an error in some code I'm creating for reuse,
most parts of this code deals with errors and just uses defaults as
appropriate,
but I need to be able to raise an error that will stop the PHP script
interpreter and throw an error back to the developer.
I've tried searching the manual for "user defined error", "throw error",
"raise error" etc,
but I guess it's just one of those functions that it's hard to find without
already knowing where to find it.
Any help would be appreciated!,
Dw.