From 19ebc13c024defb13c68e4111673f963df01dfa5 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Sun, 16 Aug 2015 22:18:49 +0000 Subject: [PATCH] Add SVG icon file --- app/src/main/java/net/jacekk/bridge/BridgeInputException.java | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/net/jacekk/bridge/BridgeInputException.java b/app/src/main/java/net/jacekk/bridge/BridgeInputException.java index 8b3c0f6..f61f66f 100644 --- a/app/src/main/java/net/jacekk/bridge/BridgeInputException.java +++ b/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; + } } -- Gitblit v1.9.1