Exception handler

How can I change the exception handler in C/Front using VB. As whenever there is any error message gets generated by the C/Front. The error message popsup on the server. and I want to change it to appear on the client. any suggestions will be accepted [:D]