Move exception to correct class.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 22 Nov 2014 12:57:51 +0000 (13:57 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 22 Nov 2014 12:58:51 +0000 (13:58 +0100)
src/main/java/net/pterodactylus/sone/data/Image.java
src/main/java/net/pterodactylus/sone/data/impl/ImageImpl.java
src/main/java/net/pterodactylus/sone/web/UploadImagePage.java
src/test/java/net/pterodactylus/sone/data/impl/ImageImplTest.java

index e3e1b4d..22ddc29 100644 (file)
@@ -134,6 +134,8 @@ public interface Image extends Identified, Fingerprintable {
 
                Image update() throws IllegalStateException;
 
+               class ImageTitleMustNotBeEmpty extends IllegalStateException { }
+
        }
 
 }
index e9c8fa9..2df98b1 100644 (file)
@@ -241,8 +241,6 @@ public class ImageImpl implements Image {
                };
        }
 
-       public static class ImageTitleMustNotBeEmpty extends IllegalStateException { }
-
        //
        // FINGERPRINTABLE METHODS
        //
index 5812af5..5e23a78 100644 (file)
@@ -33,7 +33,7 @@ import javax.imageio.ImageReader;
 import javax.imageio.stream.ImageInputStream;
 
 import net.pterodactylus.sone.data.Album;
-import net.pterodactylus.sone.data.impl.ImageImpl.ImageTitleMustNotBeEmpty;
+import net.pterodactylus.sone.data.Image.Modifier.ImageTitleMustNotBeEmpty;
 import net.pterodactylus.sone.data.Sone;
 import net.pterodactylus.sone.data.TemporaryImage;
 import net.pterodactylus.sone.text.TextFilter;
index 0875284..b78f0f6 100644 (file)
@@ -1,8 +1,7 @@
 package net.pterodactylus.sone.data.impl;
 
 import net.pterodactylus.sone.data.Image;
-import net.pterodactylus.sone.data.impl.ImageImpl;
-import net.pterodactylus.sone.data.impl.ImageImpl.ImageTitleMustNotBeEmpty;
+import net.pterodactylus.sone.data.Image.Modifier.ImageTitleMustNotBeEmpty;
 
 import org.junit.Test;