diff options
Diffstat (limited to 'branches/sca-java-1.x/itest/exceptions-simple-ws/src/main/java/com/example/ExampleServiceImpl.java')
-rw-r--r-- | branches/sca-java-1.x/itest/exceptions-simple-ws/src/main/java/com/example/ExampleServiceImpl.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/itest/exceptions-simple-ws/src/main/java/com/example/ExampleServiceImpl.java b/branches/sca-java-1.x/itest/exceptions-simple-ws/src/main/java/com/example/ExampleServiceImpl.java index b3b6f033e5..5d054c1c9b 100644 --- a/branches/sca-java-1.x/itest/exceptions-simple-ws/src/main/java/com/example/ExampleServiceImpl.java +++ b/branches/sca-java-1.x/itest/exceptions-simple-ws/src/main/java/com/example/ExampleServiceImpl.java @@ -18,9 +18,15 @@ */ package com.example; +import org.osoa.sca.ServiceRuntimeException; + public class ExampleServiceImpl implements ExampleService { public String hello(String name) throws BusinessException { throw new BusinessException("bad news", name); // return "Hello, " + name; } + + public String helloUnchecked(String name){ + throw new ServiceRuntimeException("bad unchecked news"); + } } |