Fibinger Ádám
2019-03-12 12abae6da924cb33858fbc9948fdf7a181e2038c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package hu.unr.fiber.cardapi.interfaces;
 
public class CardInvalidUpdateException extends Exception {
    public static final int CARD_ID_CHANGE = 0;
    public static final int CARD_NUMBER_ALREADY_ASSIGNED = 1;
 
    protected int code;
    public CardInvalidUpdateException(String message, int code) {
        super(message);
        this.code = code;
    }
 
    public int getCode() {
        return code;
    }
}