public function map(Action $action)
    {
        $exception = $action->getArguments();
        $exception = $exception['exception'];

        $this->_logger->debug('Exception mapper invoked with: ' . $action->getId());

        // Lookup a controller that can handle this url.
        foreach ($this->_map as $map) {
            $controllerException = $map[0];
            $controller = $map[1];
            if (!($exception instanceof $controllerException)) {
                continue;
            }
            return new DispatchInfo(
                $action, $controller,
                str_replace('\\', '_', $controllerException) . 'Exception'
            );
        }
        return false;
    }