Skip to content

Commit

Permalink
Merge pull request #23 from The-Standard-Organization/users/ZafarUrak…
Browse files Browse the repository at this point in the history
…ov/code-rub-change-exception-to-db-update-exception

CODE RUB: Change Exception -> DbUpdateException
  • Loading branch information
ZafarUrakov authored Apr 29, 2024
2 parents 5ec033a + ee836d5 commit 8bcb35f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// Copyright(c) The Standard Organization: A coalition of the Good-Hearted Engineers
// ----------------------------------------------------------------------------------

using System;
using Microsoft.EntityFrameworkCore;

namespace STX.EFxceptions.SQLite.Base.Models.Exceptions
{
public class DuplicateKeySQLiteException : Exception
public class DuplicateKeySQLiteException : DbUpdateException
{
public DuplicateKeySQLiteException(string message) : base(message) { }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// Copyright(c) The Standard Organization: A coalition of the Good-Hearted Engineers
// ----------------------------------------------------------------------------------

using System;
using Microsoft.EntityFrameworkCore;

namespace STX.EFxceptions.SQLite.Base.Models.Exceptions
{
public class DuplicateKeyWithUniqueIndexSQLiteException : Exception
public class DuplicateKeyWithUniqueIndexSQLiteException : DbUpdateException
{
public DuplicateKeyWithUniqueIndexSQLiteException(string message) : base(message) { }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// Copyright(c) The Standard Organization: A coalition of the Good-Hearted Engineers
// ----------------------------------------------------------------------------------

using System;
using Microsoft.EntityFrameworkCore;

namespace STX.EFxceptions.SQLite.Base.Models.Exceptions
{
public class ForeignKeyConstraintConflictSQLiteException : Exception
public class ForeignKeyConstraintConflictSQLiteException : DbUpdateException
{
public ForeignKeyConstraintConflictSQLiteException(string message) : base(message) { }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// Copyright(c) The Standard Organization: A coalition of the Good-Hearted Engineers
// ----------------------------------------------------------------------------------

using System;
using Microsoft.EntityFrameworkCore;

namespace STX.EFxceptions.SQLite.Base.Models.Exceptions
{
public class InvalidColumnNameSQLiteException : Exception
public class InvalidColumnNameSQLiteException : DbUpdateException
{
public InvalidColumnNameSQLiteException(string message) : base(message) { }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
// Copyright(c) The Standard Organization: A coalition of the Good-Hearted Engineers
// ----------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;

namespace STX.EFxceptions.SQLite.Base.Models.Exceptions
{
public class InvalidObjectNameSQLiteException : Exception
public class InvalidObjectNameSQLiteException : DbUpdateException
{
public InvalidObjectNameSQLiteException(string message) : base(message) { }
}
Expand Down

0 comments on commit 8bcb35f

Please sign in to comment.