Merge pull request 'feat/infer_dev_260107' (#300) from feat/infer_dev_260107 into develop
Reviewed-on: https://kamco.gitea.gs.dabeeo.com/dabeeo/kamco-dabeeo-backoffice/pulls/300
This commit is contained in:
@@ -17,11 +17,13 @@ public class CustomApiException extends RuntimeException {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public CustomApiException(String codeName, HttpStatus status) {
|
public CustomApiException(String codeName, HttpStatus status) {
|
||||||
|
super(codeName);
|
||||||
this.codeName = codeName;
|
this.codeName = codeName;
|
||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CustomApiException(ErrorCode errorCode) {
|
public CustomApiException(ErrorCode errorCode) {
|
||||||
|
super(errorCode.getCode()); // 또는 errorCode.getMessage()
|
||||||
this.codeName = errorCode.getCode();
|
this.codeName = errorCode.getCode();
|
||||||
this.status = errorCode.getStatus();
|
this.status = errorCode.getStatus();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user