start backend
This commit is contained in:
@@ -1,4 +1,18 @@
|
||||
package com.krylov.refound.exception;
|
||||
|
||||
public class ApiException {
|
||||
import com.krylov.refound.enums.ErrorCode;
|
||||
import lombok.Getter;
|
||||
import org.springframework.http.HttpStatus;
|
||||
|
||||
@Getter
|
||||
public class ApiException extends RuntimeException {
|
||||
|
||||
private final ErrorCode errorCode;
|
||||
private final HttpStatus status;
|
||||
|
||||
public ApiException(ErrorCode errorCode, String message, HttpStatus status) {
|
||||
super(message);
|
||||
this.errorCode = errorCode;
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user