The Little Guy Posted August 8, 2008 Share Posted August 8, 2008 I am making this script I am/may distribute, and would like to know how to throw custom error messages. Link to comment https://forums.phpfreaks.com/topic/118811-custom-error-messages/ Share on other sites More sharing options...
DarkWater Posted August 8, 2008 Share Posted August 8, 2008 trigger_error() or exceptions. Link to comment https://forums.phpfreaks.com/topic/118811-custom-error-messages/#findComment-611769 Share on other sites More sharing options...
NathanLedet Posted August 8, 2008 Share Posted August 8, 2008 based on what? based on MySQL errors? input validation errors? Link to comment https://forums.phpfreaks.com/topic/118811-custom-error-messages/#findComment-611770 Share on other sites More sharing options...
The Little Guy Posted August 8, 2008 Author Share Posted August 8, 2008 based on what? based on MySQL errors? input validation errors? Input Validation errors Link to comment https://forums.phpfreaks.com/topic/118811-custom-error-messages/#findComment-611776 Share on other sites More sharing options...
The Little Guy Posted August 8, 2008 Author Share Posted August 8, 2008 trigger_error() or exceptions. That works, only it shows the line the error was thrown, and not the line where the error occurred. so if I have a class myClass with a method myMethod and I call it like so: echo $classInstance->myMethod(23); say the number 23 passed to it is supposed to be a float number, well the above is not a float so it will throw an error. The problem is that it is throwing the error in the class file, and not the file where I echo out the class. Make sense? Link to comment https://forums.phpfreaks.com/topic/118811-custom-error-messages/#findComment-611778 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.