jerryshao commented on code in PR #5067:
URL: https://github.com/apache/gravitino/pull/5067#discussion_r1804182770
##########
common/src/main/java/org/apache/gravitino/dto/responses/ErrorResponse.java:
##########
@@ -234,6 +234,32 @@ public static ErrorResponse alreadyExists(String type,
String message, Throwable
ErrorConstants.ALREADY_EXISTS_CODE, type, message,
getStackTrace(throwable));
}
+ /**
+ * Create a new entity in use error instance of {@link ErrorResponse}.
+ *
+ * @param type The type of the error.
+ * @param message The message of the error.
+ * @param throwable The throwable that caused the error.
+ * @return The new instance.
+ */
+ public static ErrorResponse nonInUse(String type, String message, Throwable
throwable) {
Review Comment:
"notInUse"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]