mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
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.
27 lines
754 B
27 lines
754 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.Serialization;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Volo.Abp;
|
|
|
|
namespace Volo.CmsKit.Comments
|
|
{
|
|
[Serializable]
|
|
public class EntityNotCommentableException : BusinessException
|
|
{
|
|
public EntityNotCommentableException(SerializationInfo serializationInfo, StreamingContext context) : base(serializationInfo, context)
|
|
{
|
|
}
|
|
|
|
public EntityNotCommentableException(string entityType)
|
|
{
|
|
Code = CmsKitErrorCodes.Comments.EntityNotCommentable;
|
|
EntityType = entityType;
|
|
WithData(nameof(EntityType), EntityType);
|
|
}
|
|
|
|
public string EntityType { get; }
|
|
}
|
|
}
|
|
|