sky-take-out/sky-common/src/main/java/com/sky/common/exception/DeletionNotAllowedException...

23 lines
583 B
Java
Raw Normal View History

2024-03-11 20:41:39 +08:00
package com.sky.common.exception;
2024-03-16 21:54:38 +08:00
import lombok.extern.slf4j.Slf4j;
2024-03-11 20:41:39 +08:00
/**
* 不允许删除异常
*/
2024-03-16 21:54:38 +08:00
@Slf4j
public class DeletionNotAllowedException extends BaseException {
2024-03-11 20:41:39 +08:00
/**
* Constructs a new runtime exception with {@code null} as its
* detail message. The cause is not initialized, and may subsequently be
* initialized by a call to {@link #initCause}.
*/
public DeletionNotAllowedException() {
}
public DeletionNotAllowedException(String message) {
super(message);
2024-03-16 21:54:38 +08:00
log.error("不允许删除异常:{}", message);
2024-03-11 20:41:39 +08:00
}
}