mirror of https://github.com/abpframework/abp
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.
30 lines
758 B
30 lines
758 B
using System;
|
|
using System.Runtime.Serialization;
|
|
using Volo.Abp;
|
|
|
|
namespace Volo.CmsKit.Blogs
|
|
{
|
|
public class BlogPostSlugAlreadyExistException : BusinessException
|
|
{
|
|
public BlogPostSlugAlreadyExistException(SerializationInfo serializationInfo, StreamingContext context)
|
|
: base(serializationInfo, context)
|
|
{
|
|
}
|
|
|
|
public BlogPostSlugAlreadyExistException(Guid blogId, string slug)
|
|
{
|
|
Slug = slug;
|
|
BlogId = blogId;
|
|
|
|
Code = CmsKitErrorCodes.BlogPosts.SlugAlreadyExist;
|
|
|
|
WithData(nameof(Slug), Slug);
|
|
WithData(nameof(BlogId), BlogId);
|
|
}
|
|
|
|
public virtual string Slug { get; }
|
|
|
|
public virtual Guid BlogId { get; }
|
|
}
|
|
}
|