-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63d64b0
commit a2227bd
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
STX.EFxceptions.PostgreSQL.Base/Brokers/DbErrorBroker/IPostgreSqlErrorBroker.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// ---------------------------------------------------------------------------------- | ||
// Copyright (c) The Standard Organization: A coalition of the Good-Hearted Engineers | ||
// ---------------------------------------------------------------------------------- | ||
|
||
using Npgsql; | ||
using STX.EFxceptions.Abstractions.Brokers.DbErrorBroker; | ||
|
||
namespace STX.EFxceptions.PostgreSQL.Base.Brokers.DbErrorBroker | ||
{ | ||
public interface IPostgreSqlErrorBroker : IDbErrorBroker<NpgsqlException> | ||
{ } | ||
} |
14 changes: 14 additions & 0 deletions
14
STX.EFxceptions.PostgreSQL.Base/Brokers/DbErrorBroker/PostgreSqlErrorBroker.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// ---------------------------------------------------------------------------------- | ||
// Copyright (c) The Standard Organization: A coalition of the Good-Hearted Engineers | ||
// ---------------------------------------------------------------------------------- | ||
|
||
using Npgsql; | ||
|
||
namespace STX.EFxceptions.PostgreSQL.Base.Brokers.DbErrorBroker | ||
{ | ||
public class PostgreSqlErrorBroker : IPostgreSqlErrorBroker | ||
{ | ||
public int GetErrorCode(NpgsqlException postgreSqlException) => | ||
postgreSqlException.ErrorCode; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters