Implement jwt base

This commit is contained in:
hou27
2022-06-10 18:22:19 +09:00
parent 26b0dad1ab
commit c51cf8b525
11 changed files with 193 additions and 74 deletions

View File

@@ -0,0 +1,26 @@
package demo.api.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;
}
}