@Test public void testVerifyNotNullWithNull() { try { HecateException.verifyNotNull(null, "This is my %s.", "message"); fail(); } catch (HecateException e) { assertEquals("This is my message.", e.getMessage()); } }
public static <T> T verifyNotNull(T object, String message, Object... params) { if(object == null) { throw new HecateException(message, params); } return object; }
HecateException extends RuntimeException { public static <T> T verifyNotNull(T object, String message, Object... params) { if(object == null) { throw new HecateException(message, params); } return object; } }
HecateException extends RuntimeException { public static <T> T verifyNotNull(T object, String message, Object... params) { if(object == null) { throw new HecateException(message, params); } return object; } HecateException(String message, Object... args);  HecateException(Exception cause, String message, Object... args); }
HecateException extends RuntimeException { public static <T> T verifyNotNull(T object, String message, Object... params) { if(object == null) { throw new HecateException(message, params); } return object; } HecateException(String message, Object... args);  HecateException(Exception cause, String message, Object... args); static T verifyNotNull(T object, String message, Object... params); }
HecateException extends RuntimeException { public static <T> T verifyNotNull(T object, String message, Object... params) { if(object == null) { throw new HecateException(message, params); } return object; } HecateException(String message, Object... args);  HecateException(Exception cause, String message, Object... args); static T verifyNotNull(T object, String message, Object... params);  }