Add exception type for invalid Sone names.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Oct 2010 12:05:38 +0000 (14:05 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Oct 2010 12:05:38 +0000 (14:05 +0200)
src/main/java/net/pterodactylus/sone/core/SoneException.java

index 51847c5..74f257d 100644 (file)
@@ -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. */