Commit a227462 1 parent 738481d commit a227462 Copy full SHA for a227462
File tree 1 file changed +7
-1
lines changed
src/main/java/com/sponus/sponusbe/auth/jwt/filter
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 8
8
import com .sponus .sponusbe .auth .jwt .exception .SecurityCustomException ;
9
9
import com .sponus .sponusbe .auth .jwt .exception .SecurityErrorCode ;
10
10
import com .sponus .sponusbe .auth .jwt .util .HttpResponseUtil ;
11
+ import com .sponus .sponusbe .global .common .ApiResponse ;
11
12
import com .sponus .sponusbe .global .common .BaseErrorCode ;
12
13
13
14
import jakarta .servlet .FilterChain ;
@@ -37,10 +38,15 @@ protected void doFilterInternal(
37
38
);
38
39
} catch (Exception e ) {
39
40
log .error (">>>>> Exception : " , e );
41
+ ApiResponse <String > errorResponse = ApiResponse .onFailure (
42
+ SecurityErrorCode .INTERNAL_SECURITY_ERROR .getCode (),
43
+ SecurityErrorCode .INTERNAL_SECURITY_ERROR .getMessage (),
44
+ e .getMessage ()
45
+ );
40
46
HttpResponseUtil .setErrorResponse (
41
47
response ,
42
48
HttpStatus .INTERNAL_SERVER_ERROR ,
43
- SecurityErrorCode . INTERNAL_SECURITY_ERROR . getErrorResponse ()
49
+ errorResponse
44
50
);
45
51
}
46
52
}
You can’t perform that action at this time.
0 commit comments