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