First stab, do we want to go for throws Throwable or even just switch to RuntimeExceptions?

This commit is contained in:
Viktor Klang 2012-02-16 12:31:49 +01:00
parent 6af612153e
commit e88f2bd936
11 changed files with 45 additions and 38 deletions

View file

@ -55,7 +55,7 @@ public class CustomRouterDocTestBase {
//#crTest
@Test
public void countVotesAsIntendedNotAsInFlorida() {
public void countVotesAsIntendedNotAsInFlorida() throws Exception {
ActorRef routedActor = system.actorOf(new Props().withRouter(new VoteCountRouter()));
routedActor.tell(DemocratVote);
routedActor.tell(DemocratVote);

View file

@ -18,7 +18,7 @@ import akka.dispatch.Await;
//#parentActor
public class ParentActor extends UntypedActor {
public void onReceive(Object msg) {
public void onReceive(Object msg) throws Exception {
if (msg.equals("rrr")) {
//#roundRobinRouter
ActorRef roundRobinRouter = getContext().actorOf(