@Test void testGetMessage() { CodedRuntimeException ex = new PermissionNotSuitableException("permission", "type"); assertEquals("permission:permission, typeId:type", ex.getMessage()); }
@Override public String getMessage() { return String.format("permission:%s, typeId:%s", permission, typeId); }
PermissionNotSuitableException extends BadRequestException { @Override public String getMessage() { return String.format("permission:%s, typeId:%s", permission, typeId); } }
PermissionNotSuitableException extends BadRequestException { @Override public String getMessage() { return String.format("permission:%s, typeId:%s", permission, typeId); } PermissionNotSuitableException(String permission, String typeId); }
PermissionNotSuitableException extends BadRequestException { @Override public String getMessage() { return String.format("permission:%s, typeId:%s", permission, typeId); } PermissionNotSuitableException(String permission, String typeId); @Override String getMessage(); }
PermissionNotSuitableException extends BadRequestException { @Override public String getMessage() { return String.format("permission:%s, typeId:%s", permission, typeId); } PermissionNotSuitableException(String permission, String typeId); @Override String getMessage();  }