Skip to content
This repository has been archived by the owner on Jun 24, 2020. It is now read-only.

Commit

Permalink
Remove PostgresqlServerErrorException References
Browse files Browse the repository at this point in the history
Previously, when the Examples were migrated to be database-agnostic, a
reference to PostgresqlServerErrorException was left in place.  This change
replaces that reference with the more generic R2dbcException.
  • Loading branch information
nebhale committed Oct 5, 2018
1 parent ad58a24 commit 99ae4b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/io/r2dbc/client/Example.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package io.r2dbc.client;

import io.r2dbc.postgresql.PostgresqlServerErrorException;
import io.r2dbc.spi.R2dbcException;
import io.r2dbc.spi.Result;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
Expand Down Expand Up @@ -89,7 +89,7 @@ default void connectionMutability() {
.thenMany(handle.execute(String.format("INSERT INTO test VALUES (%s)", getPlaceholder(0)), 200)))

.as(StepVerifier::create)
.verifyError(PostgresqlServerErrorException.class);
.verifyError(R2dbcException.class);
}

@BeforeEach
Expand Down Expand Up @@ -235,7 +235,7 @@ default void transactionMutability() {
.thenMany(handle.execute(String.format("INSERT INTO test VALUES (%s)", getPlaceholder(0)), 200)))

.as(StepVerifier::create)
.verifyError(PostgresqlServerErrorException.class);
.verifyError(R2dbcException.class);
}

@Test
Expand Down

0 comments on commit 99ae4b9

Please sign in to comment.