@Test public void testBasic() { Model mo = new DefaultModel(); SchedulerException ex = new SchedulerException(mo, "foo"); Assert.assertEquals(ex.getModel(), mo); Assert.assertEquals(ex.getMessage(), "foo"); SchedulerException ex2 = new SchedulerException(mo, "foo", ex); Assert.assertEquals(ex2.getModel(), mo); Assert.assertEquals(ex2.getMessage(), "foo"); Assert.assertEquals(ex2.getCause(), ex); }
public Model getModel() { return model; }
SchedulerException extends RuntimeException { public Model getModel() { return model; } }
SchedulerException extends RuntimeException { public Model getModel() { return model; } SchedulerException(Model m, String msg);  SchedulerException(Model m, String msg, Throwable t); }
SchedulerException extends RuntimeException { public Model getModel() { return model; } SchedulerException(Model m, String msg);  SchedulerException(Model m, String msg, Throwable t); Model getModel(); }
SchedulerException extends RuntimeException { public Model getModel() { return model; } SchedulerException(Model m, String msg);  SchedulerException(Model m, String msg, Throwable t); Model getModel();  }