Add sge-backend foldery

This commit is contained in:
Ali Sadeghi
2025-07-18 21:16:29 +03:30
parent 25ae881c89
commit 28cc64a052
577 changed files with 833757 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
package com.sgs.exception;
import org.springframework.http.HttpStatus;
public class CustomException extends RuntimeException {
private static final long serialVersionUID = 1L;
private final String message;
private final HttpStatus httpStatus;
public CustomException(String message, HttpStatus httpStatus) {
this.message = message;
this.httpStatus = httpStatus;
}
@Override
public String getMessage() {
return message;
}
public HttpStatus getHttpStatus() {
return httpStatus;
}
}