Respect the error_reporting ini setting so that the full details of the error code including stack-trace isn't displayed publicly on a live site. Handle just default php Exceptions in the try/catch blocks of the server backends.