blob: 2784445867387b5b16de701a735e49091c0b5fe9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package sample;
public class HelloworldFaultsImpl implements HelloworldFaults {
@Override
public String sayHello(String name) throws MyException {
if ("beate".equals(name)) {
throw new MyException("Bad Beate");
}
if ("bang".equals(name)) {
throw new RuntimeException("got bang");
}
return "Hello " + name;
}
}
|