mirror of https://github.com/abpframework/abp.git
committed by
GitHub
6 changed files with 28 additions and 27 deletions
@ -1,22 +0,0 @@ |
|||||
using System; |
|
||||
using Volo.Abp.ExceptionHandling; |
|
||||
|
|
||||
namespace Volo.Abp.GlobalFeatures |
|
||||
{ |
|
||||
public class AbpGlobalFeatureNotEnableException : AbpException, IHasErrorCode |
|
||||
{ |
|
||||
public string Code { get; } |
|
||||
|
|
||||
public AbpGlobalFeatureNotEnableException(string message = null, string code = null, Exception innerException = null) |
|
||||
: base(message, innerException) |
|
||||
{ |
|
||||
Code = code; |
|
||||
} |
|
||||
|
|
||||
public AbpGlobalFeatureNotEnableException WithData(string name, object value) |
|
||||
{ |
|
||||
Data[name] = value; |
|
||||
return this; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
@ -0,0 +1,23 @@ |
|||||
|
using System; |
||||
|
using Volo.Abp.ExceptionHandling; |
||||
|
|
||||
|
namespace Volo.Abp.GlobalFeatures |
||||
|
{ |
||||
|
[Serializable] |
||||
|
public class AbpGlobalFeatureNotEnabledException : AbpException, IHasErrorCode |
||||
|
{ |
||||
|
public string Code { get; } |
||||
|
|
||||
|
public AbpGlobalFeatureNotEnabledException(string message = null, string code = null, Exception innerException = null) |
||||
|
: base(message, innerException) |
||||
|
{ |
||||
|
Code = code; |
||||
|
} |
||||
|
|
||||
|
public AbpGlobalFeatureNotEnabledException WithData(string name, object value) |
||||
|
{ |
||||
|
Data[name] = value; |
||||
|
return this; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue