diff options
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/exceptions/ServerAppVersionNotParsableException.java')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/exceptions/ServerAppVersionNotParsableException.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/exceptions/ServerAppVersionNotParsableException.java b/app/src/main/java/it/niedermann/nextcloud/deck/exceptions/ServerAppVersionNotParsableException.java index 25665bebb..e2521195b 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/exceptions/ServerAppVersionNotParsableException.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/exceptions/ServerAppVersionNotParsableException.java @@ -2,7 +2,19 @@ package it.niedermann.nextcloud.deck.exceptions; public class ServerAppVersionNotParsableException extends IllegalArgumentException { - public ServerAppVersionNotParsableException(String message) { + public enum Hint { + CAPABILITIES_NOT_PARSABLE, + CAPABILITIES_VERSION_NOT_PARSABLE, + } + + private Hint hint; + + public ServerAppVersionNotParsableException(Hint hint, String message) { super(message); + this.hint = hint; + } + + public Hint getHint() { + return hint; } } |