From ab68afd7a83a428d3df4f62c609dccc896f76c5e Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sat, 19 Feb 2022 09:16:24 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=D0=BC=D0=B5=D1=80=D1=8B=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20=D0=B4=D0=B5=D0=B1=D0=B0=D0=B3=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/debugger/two/FooService.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/main/java/dev/struchkov/example/debugger/two/FooService.java b/src/main/java/dev/struchkov/example/debugger/two/FooService.java index dc726f5..905d939 100644 --- a/src/main/java/dev/struchkov/example/debugger/two/FooService.java +++ b/src/main/java/dev/struchkov/example/debugger/two/FooService.java @@ -7,13 +7,18 @@ public class FooService { public void example() { for (int i = 0; i < 1000; i++) { + testMethod(i); SurpriseBox.surpriseOne(i); + } + } -// try { -// SurpriseBox.surpriseOne(i); -// } catch (SurpriseException e) { -// System.err.println(e.getMessage()); -// } + private void testMethod(int i) { + if (i == 100) { + try { + throw new SurpriseException("Упс"); + } catch (SurpriseException e) { + + } } }