Throw `IOException` instead of `Exception`
@@ -27,6 +27,7 @@ import java.io.IOException;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.cactoos.Scalar;
+import org.cactoos.scalar.IoChecked;
import org.takes.Request;
import org.takes.Response;
import org.takes.Take;
@@ -81,8 +82,8 @@ public final class TkFailure extends TkWrap {
super(
new Take() {
@Override
- public Response act(final Request request) throws Exception {
- throw err.value();
+ public Response act(final Request request) throws IOException {
+ throw new IoChecked<>(err).value();
}
}
);
