diff --git a/src/main/java/io/wring/dynamo/DyErrors.java b/src/main/java/io/wring/dynamo/DyErrors.java index 83cbce2..6a83a02 100644 --- a/src/main/java/io/wring/dynamo/DyErrors.java +++ b/src/main/java/io/wring/dynamo/DyErrors.java @@ -32,7 +32,6 @@ import com.jcabi.dynamo.Region; import io.wring.model.Error; import io.wring.model.Errors; -import java.io.IOException; /** * Errors stored in Dynamo database. @@ -70,7 +69,7 @@ public DyErrors(final Region reg, final String user) { } @Override - public Iterable iterate() throws IOException { + public Iterable iterate() { throw new UnsupportedOperationException("iterate not implemented"); } diff --git a/src/main/java/io/wring/fake/FkErrors.java b/src/main/java/io/wring/fake/FkErrors.java index 8187fcd..fbc415e 100644 --- a/src/main/java/io/wring/fake/FkErrors.java +++ b/src/main/java/io/wring/fake/FkErrors.java @@ -31,7 +31,6 @@ import io.wring.model.Error; import io.wring.model.Errors; -import java.io.IOException; import java.util.Collection; import org.cactoos.collection.CollectionOf; @@ -65,7 +64,7 @@ public FkErrors() { } @Override - public Iterable iterate() throws IOException { + public Iterable iterate() { return this.errors; } diff --git a/src/main/java/io/wring/model/Errors.java b/src/main/java/io/wring/model/Errors.java index ffc3c74..53b3645 100644 --- a/src/main/java/io/wring/model/Errors.java +++ b/src/main/java/io/wring/model/Errors.java @@ -47,7 +47,7 @@ public interface Errors { * @return Events * @throws IOException If fails */ - Iterable iterate() throws IOException; + Iterable iterate(); /** * Add a new error. @@ -75,7 +75,7 @@ public Simple() { } @Override - public Iterable iterate() throws IOException { + public Iterable iterate() { return this.errors; }