Skip to content

Commit 874bc5a

Browse files
committed
Add constructor to DomainExceptionBase.
1 parent b60e642 commit 874bc5a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/OpenDDD/Domain/Model/Exception/Base/DomainExceptionBase.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
public abstract class DomainExceptionBase : System.Exception
44
{
55
protected DomainExceptionBase(string message) : base(message) { }
6+
7+
protected DomainExceptionBase(string message, System.Exception innerException)
8+
: base(message, innerException) { }
69
}
710
}

src/OpenDDD/Domain/Model/Exception/DomainException.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ namespace OpenDDD.Domain.Model.Exception
44
{
55
public class DomainException : DomainExceptionBase
66
{
7-
public DomainException(string message)
8-
: base(message) { }
7+
public DomainException(string message) : base(message) { }
8+
9+
public DomainException(string message, System.Exception innerException)
10+
: base(message, innerException) { }
911
}
1012
}

0 commit comments

Comments
 (0)