From 433fc6a7f10e1864d18469f086d943433979a588 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 10 May 2017 15:30:58 +0200 Subject: [PATCH] base: let 'Local_service' catch all exceptions This patch eases the debugging of situations where a session-object constructor wrongly throws an exception type not specified in the 'Local_service::Factory' interface. --- repos/base/include/base/service.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repos/base/include/base/service.h b/repos/base/include/base/service.h index cd88f5746c..5e87326ba1 100644 --- a/repos/base/include/base/service.h +++ b/repos/base/include/base/service.h @@ -190,6 +190,9 @@ class Genode::Local_service : public Service session.phase = Session_state::INSUFFICIENT_CAP_QUOTA; } catch (Insufficient_ram_quota) { session.phase = Session_state::INSUFFICIENT_RAM_QUOTA; } + catch (...) { + warning("unexpected exception during ", + SESSION::service_name(), " session construction"); } break;