mirror of
https://github.com/Example-uPagge/debugger.git
synced 2024-06-14 11:22:32 +03:00
Добавил примеры для дебага
This commit is contained in:
parent
e9e07c29a8
commit
ab68afd7a8
@ -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) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user