|
Posted by Toby A Inkster on 05/23/07 10:44
Erwin Moller wrote:
> You could of course try to parse your errormessage and look for substrings
> like 'UNIQUE CONSTRAINT VIOLATION' (just an example), but that message
> could very well be different if you switch databases, or upgrade the one
> you use now.
A good compromise is to parse the error message , but in cases where it
can't be recognised, display the error message directly to the user.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 88 days, 18:28.]
The Great Wi-Fi Controversy
http://tobyinkster.co.uk/blog/2007/05/22/wifi-scare/
[Back to original message]
|