+-
                                
                                    
                                
                                
                                    
                                
                                
                                    
                                         
                                        
                                        
                                        
                                        
                                            
                                        
                                        
                                    
                                
                            
                        
SpringBoot 中自定义RuntimeException,throw new 抛出后,自定义RuntimeException对象为空,具体代码如下
异常信息摘要如下图
调用抛出代码如下,位置是jwtfilter中,不知道有没有这个位置原因
CodeEnums codeEnums = JwtUtils.verifyToken(tokenStr);
if (!CodeEnums.SUCCESS.equals(codeEnums)) {
    throw new CustomRuntimeException(codeEnums);
}自定义RuntimeException如下
@EqualsAndHashCode(callSuper = true)
@Data
public class CustomRuntimeException extends RuntimeException {
    private CodeEnums codeEnums;
 public CustomRuntimeException(CodeEnums codeEnums) {
        this.codeEnums = codeEnums;
 }
} 
                