You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
464 B
17 lines
464 B
1 week ago
|
namespace CoreAgent.Domain.Exceptions
|
||
|
{
|
||
|
public class ValidationException : Exception
|
||
|
{
|
||
|
public IDictionary<string, string[]> Errors { get; }
|
||
|
|
||
|
public ValidationException(string message) : base(message)
|
||
|
{
|
||
|
Errors = new Dictionary<string, string[]>();
|
||
|
}
|
||
|
|
||
|
public ValidationException(string message, IDictionary<string, string[]> errors) : base(message)
|
||
|
{
|
||
|
Errors = errors;
|
||
|
}
|
||
|
}
|
||
|
}
|