From b35df67821fdaeeac5ac28c40bb65f56969863c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 13 Oct 2010 14:05:38 +0200 Subject: [PATCH] Add exception type for invalid Sone names. --- src/main/java/net/pterodactylus/sone/core/SoneException.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/core/SoneException.java b/src/main/java/net/pterodactylus/sone/core/SoneException.java index 51847c5..74f257d 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneException.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneException.java @@ -31,8 +31,12 @@ public class SoneException extends Exception { */ public static enum Type { + /** An invalid Sone name was specified. */ + INVALID_SONE_NAME, + /** An invalid URI was specified. */ - INVALID_URI + INVALID_URI, + } /** The type of the exception. */ -- 2.7.4