mirror of https://github.com/abpframework/abp.git
12 changed files with 55 additions and 16 deletions
@ -1,7 +1,9 @@ |
|||||
namespace Volo.Abp.FeatureManagement |
using System; |
||||
|
|
||||
|
namespace Volo.Abp.FeatureManagement |
||||
{ |
{ |
||||
public static class FeatureManagementDomainErrorCodes |
public static class FeatureManagementDomainErrorCodes |
||||
{ |
{ |
||||
|
public const string FeatureValueInvalid = "Volo.Abp.FeatureManagement:InvalidFeatureValue"; |
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -0,0 +1,14 @@ |
|||||
|
using System; |
||||
|
|
||||
|
namespace Volo.Abp.FeatureManagement |
||||
|
{ |
||||
|
[Serializable] |
||||
|
public class FeatureValueInvalidException : BusinessException |
||||
|
{ |
||||
|
public FeatureValueInvalidException(string name) : |
||||
|
base(FeatureManagementDomainErrorCodes.FeatureValueInvalid) |
||||
|
{ |
||||
|
WithData("0", name); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue