lyfO_o
2022-02-10 88c32cde660d6f6dc44f497aa0b78452c9fe1357
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.nanometer.smartlab.exception;
 
public class AlarmException extends RuntimeException {
 
    private AlarmCode code;
 
    public AlarmException(AlarmCode code, String message) {
        super(message);
        this.code = code;
    }
 
    public AlarmException(AlarmCode code) {
        super(code.getCode());
        this.code = code;
    }
 
    public AlarmCode getAlarmCode() {
        return code;
    }
}