Handler module error!

Hi there! I m looking for a solution to handler error occur on a module. Such as user request a url that refer to a module but wrong controller or action. I want to handler this error by the module it self, instead of the application handler. Thanks for your help!