refactor: update exception constants to follow new naming convention
- Update old ErrorStatus, ErrorType, and Service/Endpoint constants to new naming convention - Fix incorrect TypeSpecific usage in JWT middleware - Add missing event specific error definitions to specific.yaml - Regenerate exception constants Co-authored-by: Gemini <gemini@google.com>
This commit is contained in:
@@ -20,7 +20,7 @@ func JWTAuth() gin.HandlerFunc {
|
||||
SetStatus(exception.StatusServer).
|
||||
SetService(exception.MiddlewareServiceJwt).
|
||||
SetEndpoint(exception.EndpointMiddlewareService).
|
||||
SetType(exception.TypeSpecific).
|
||||
SetType(exception.TypeCommon).
|
||||
SetOriginal(exception.CommonErrorUnauthorized).
|
||||
Build()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user