@Test public void simpleTests() { final Model mo = new DefaultModel(); SchedulerModelingException ex = SchedulerModelingException.missingView(mo, "foo"); Assert.assertEquals(ex.getModel(), mo); Assert.assertTrue(ex.getMessage().contains("foo")); final Exception baz = new Exception("baz"); ex = new SchedulerModelingException(mo, "foo", baz); Assert.assertEquals(ex.getModel(), mo); Assert.assertEquals(ex.getMessage(), "foo"); Assert.assertEquals(ex.getCause(), baz); }
public static SchedulerModelingException missingView(Model m, String viewId) { return new SchedulerModelingException(m, "View '" + viewId + "' is required but missing"); }
SchedulerModelingException extends SchedulerException { public static SchedulerModelingException missingView(Model m, String viewId) { return new SchedulerModelingException(m, "View '" + viewId + "' is required but missing"); } }
SchedulerModelingException extends SchedulerException { public static SchedulerModelingException missingView(Model m, String viewId) { return new SchedulerModelingException(m, "View '" + viewId + "' is required but missing"); } SchedulerModelingException(Model m, String msg);  SchedulerModelingException(Model m, String msg, Throwable t); }
SchedulerModelingException extends SchedulerException { public static SchedulerModelingException missingView(Model m, String viewId) { return new SchedulerModelingException(m, "View '" + viewId + "' is required but missing"); } SchedulerModelingException(Model m, String msg);  SchedulerModelingException(Model m, String msg, Throwable t); static SchedulerModelingException missingView(Model m, String viewId); }
SchedulerModelingException extends SchedulerException { public static SchedulerModelingException missingView(Model m, String viewId) { return new SchedulerModelingException(m, "View '" + viewId + "' is required but missing"); } SchedulerModelingException(Model m, String msg);  SchedulerModelingException(Model m, String msg, Throwable t); static SchedulerModelingException missingView(Model m, String viewId);  }