Skip to content

Commit 801d62e

Browse files
climber73mp911de
authored andcommitted
Map postgres' 40001 error code (serialization_failure) to PostgresqlRollbackException
[resolves #355]
1 parent 1f39223 commit 801d62e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/io/r2dbc/postgresql/ExceptionFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ private static R2dbcException createException(ErrorResponse response, String sql
6868
case "42501":
6969
return new PostgresqlPermissionDeniedException(errorDetails);
7070
case "40000":
71+
case "40001":
7172
return new PostgresqlRollbackException(errorDetails);
7273
case "28000":
7374
case "28P01":

0 commit comments

Comments
 (0)