I assume you don't want your users to see line numbers. That would not be a
very good idea.
So, assuming you've arranged to catch all exceptions, and assuming you've
published a deployment configuration, then I imagine that the best you could
do would be to write a stack trace to a log and display a user-friendly
message on the page. As far as I know, a deployment version of a project
will not have the debugging information available to provide a line number.
I could very well be wrong, though. Someone will correct me if I am.
Anyway, why are you publishing projects that still have bugs?
)
Peter