Добавил примеры для дебага

This commit is contained in:
Struchkov Mark 2022-02-19 09:16:24 +03:00
parent e9e07c29a8
commit ab68afd7a8

View File

@ -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) {
}
}
}