| 1234567891011121314151617181920 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace InABox.Core
- {
- public class InvalidEnumException<T> : Exception
- where T : Enum
- {
- public InvalidEnumException(T value) : base($"Invalid value {value} for enum {typeof(T).Name}")
- {
- }
- public InvalidEnumException() : base($"Invalid value for enum {typeof(T).Name}")
- {
- }
- }
- }
|