You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							43 lines
						
					
					
						
							784 B
						
					
					
				
			
		
		
	
	
							43 lines
						
					
					
						
							784 B
						
					
					
				package com.ruoyi.common.exception; | 
						|
 | 
						|
/** | 
						|
 * 自定义异常 | 
						|
 *  | 
						|
 * @author ruoyi | 
						|
 */ | 
						|
public class CustomException extends RuntimeException | 
						|
{ | 
						|
    private static final long serialVersionUID = 1L; | 
						|
 | 
						|
    private Integer code; | 
						|
 | 
						|
    private String message; | 
						|
 | 
						|
    public CustomException(String message) | 
						|
    { | 
						|
        this.message = message; | 
						|
    } | 
						|
 | 
						|
    public CustomException(String message, Integer code) | 
						|
    { | 
						|
        this.message = message; | 
						|
        this.code = code; | 
						|
    } | 
						|
 | 
						|
    public CustomException(String message, Throwable e) | 
						|
    { | 
						|
        super(message, e); | 
						|
        this.message = message; | 
						|
    } | 
						|
 | 
						|
    @Override | 
						|
    public String getMessage() | 
						|
    { | 
						|
        return message; | 
						|
    } | 
						|
 | 
						|
    public Integer getCode() | 
						|
    { | 
						|
        return code; | 
						|
    } | 
						|
}
 | 
						|
 |