Handles a customized exception