@Test void testGetMessage() { CodedRuntimeException ex = new SuperUserPermissionsException("admin"); assertEquals("name:admin", ex.getMessage()); }
@Override public String getMessage() { return String.format("name:%s", name); }
SuperUserPermissionsException extends CodedRuntimeException { @Override public String getMessage() { return String.format("name:%s", name); } }
SuperUserPermissionsException extends CodedRuntimeException { @Override public String getMessage() { return String.format("name:%s", name); } SuperUserPermissionsException(String name); }
SuperUserPermissionsException extends CodedRuntimeException { @Override public String getMessage() { return String.format("name:%s", name); } SuperUserPermissionsException(String name); @Override String getMessage(); }
SuperUserPermissionsException extends CodedRuntimeException { @Override public String getMessage() { return String.format("name:%s", name); } SuperUserPermissionsException(String name); @Override String getMessage();  }