You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
480 B
20 lines
480 B
|
3 months ago
|
package com.guozhi.bloodanalysis.exception;
|
||
|
|
|
||
|
|
import lombok.Data;
|
||
|
|
import lombok.EqualsAndHashCode;
|
||
|
|
|
||
|
|
@EqualsAndHashCode(callSuper = false)
|
||
|
|
@Data
|
||
|
|
public class BusinessException extends RuntimeException{
|
||
|
|
private String code;
|
||
|
|
private String message;
|
||
|
|
public BusinessException(String message) {
|
||
|
|
super(message);
|
||
|
|
}
|
||
|
|
public BusinessException(String code, String message) {
|
||
|
|
super(message);
|
||
|
|
this.code = code;
|
||
|
|
this.message = message;
|
||
|
|
}
|
||
|
|
}
|