Skip to content

Commit 631a4c6

Browse files
add a specific exception.
1 parent c528ccf commit 631a4c6

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System;
2+
3+
namespace CleanTemplate.Common.Exceptions
4+
{
5+
public class InvalidNullInputException : Exception
6+
{
7+
public InvalidNullInputException()
8+
: base()
9+
{
10+
}
11+
12+
public InvalidNullInputException(string message)
13+
: base(message)
14+
{
15+
}
16+
17+
public InvalidNullInputException(string message, Exception innerException)
18+
: base(message, innerException)
19+
{
20+
}
21+
22+
public InvalidNullInputException(string name, object key)
23+
: base($"Input \"{name}\" ({key}) is not valid.")
24+
{
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)