mirror of https://github.com/abpframework/abp.git
5 changed files with 32 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||
using System; |
|||
using Volo.Abp; |
|||
|
|||
namespace Volo.CmsKit.Tags |
|||
{ |
|||
[Serializable] |
|||
public class EntityNotTaggableException : BusinessException |
|||
{ |
|||
public EntityNotTaggableException(string code = null, string message = null, string details = null, Exception innerException = null, Microsoft.Extensions.Logging.LogLevel logLevel = Microsoft.Extensions.Logging.LogLevel.Warning) : base(code, message, details, innerException, logLevel) |
|||
{ |
|||
} |
|||
|
|||
public EntityNotTaggableException(string entityType) |
|||
{ |
|||
Code = CmsKitErrorCodes.EntityNotTaggable; |
|||
WithData(nameof(Tag.EntityType), entityType); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue