commit | author | age | ||
2d8187 | 1 | package net.jacekk.bridge; |
JK | 2 | |
ae5f07 | 3 | public class BridgeInputException extends Exception { |
JK | 4 | public enum Error { |
5 | CONTRACT_LEVEL_INVALID, CONTRACT_SUIT_INVALID, | |
6 | CONTRACT_DOUBLE_INVALID, PC_INVALID, | |
7 | TRICKS_INVALID, PASSES_INVALID | |
8 | } | |
9 | ||
10 | final Error error; | |
11 | ||
12 | public BridgeInputException(Error error) { | |
13 | this.error = error; | |
14 | } | |
15 | ||
16 | public Error getError() { | |
17 | return error; | |
18 | } | |
2d8187 | 19 | } |