Skip to content

Commit

Permalink
PET-287 refactor : 에러 인터페이스에 http 상태 코드 추가에 따른 GlobalExceptionHandler…
Browse files Browse the repository at this point in the history
…에서 http 상태 코드 조회 반영
  • Loading branch information
tlarbals824 committed Jan 20, 2024
1 parent e441a98 commit 9ab3ca4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.pawith.commonmodule.exception;

import lombok.Getter;
import org.springframework.http.HttpStatusCode;

@Getter
public class BusinessException extends RuntimeException{
Expand All @@ -17,4 +18,8 @@ public String getMessage(){
public int getErrorCode(){
return error.getErrorCode();
}

public HttpStatusCode getHttpStatusCode(){
return error.getHttpStatusCode();
}
}

0 comments on commit 9ab3ca4

Please sign in to comment.