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