Skip to content

Commit

Permalink
feat : add duplicate comment exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikoo-Asadnejad committed Jan 12, 2024
1 parent 57f421f commit 60b7315
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Product.Domain.Aggregates.ProductAggregate;

public class CommenterUser
public class CommenterUser
{

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
namespace Product.Domain.Aggregates.Product.Exceptions;

public class DuplicateCommentException : Exception
{
public DuplicateCommentException() : base(message: "Comment is duplicated")
{

}
public DuplicateCommentException(string msg) : base(message: msg)
{

}
}

0 comments on commit 60b7315

Please sign in to comment.