app/src/main/java/net/jacekk/bridge/BridgeInputException.java
@@ -1,7 +1,19 @@ package net.jacekk.bridge; /** * Created by jacek on 18.01.15. */ public class BridgeInputException { 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; } }