```java
if(edgesTable.next()) {
    throw new SQLException("One result only");
}
```