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
|
|
|
}
|
|
|
|
}
|