try { [...] } catch (Throwable) { Log::error("Error!"); }