Skip to content

Commit

Permalink
For #76: Exception removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulodamaso committed Oct 31, 2018
1 parent 3426ed0 commit f2ce7b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/main/java/io/wring/dynamo/DyErrors.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -70,7 +69,7 @@ public DyErrors(final Region reg, final String user) {
}

@Override
public Iterable<Error> iterate() throws IOException {
public Iterable<Error> iterate() {
throw new UnsupportedOperationException("iterate not implemented");
}

Expand Down
3 changes: 1 addition & 2 deletions src/main/java/io/wring/fake/FkErrors.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -65,7 +64,7 @@ public FkErrors() {
}

@Override
public Iterable<Error> iterate() throws IOException {
public Iterable<Error> iterate() {
return this.errors;
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/wring/model/Errors.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public interface Errors {
* @return Events
* @throws IOException If fails
*/
Iterable<Error> iterate() throws IOException;
Iterable<Error> iterate();

/**
* Add a new error.
Expand Down Expand Up @@ -75,7 +75,7 @@ public Simple() {
}

@Override
public Iterable<Error> iterate() throws IOException {
public Iterable<Error> iterate() {
return this.errors;
}

Expand Down

0 comments on commit f2ce7b9

Please sign in to comment.