mirror of https://github.com/Squidex/squidex.git
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.
36 lines
928 B
36 lines
928 B
// ==========================================================================
|
|
// DomainObjectException.cs
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex Group
|
|
// All rights reserved.
|
|
// ==========================================================================
|
|
|
|
using System;
|
|
|
|
namespace Squidex.Infrastructure
|
|
{
|
|
public class DomainObjectException : Exception
|
|
{
|
|
private readonly string id;
|
|
private readonly string typeName;
|
|
|
|
public string TypeName
|
|
{
|
|
get { return typeName; }
|
|
}
|
|
|
|
public string Id
|
|
{
|
|
get { return id; }
|
|
}
|
|
|
|
protected DomainObjectException(string message, string id, Type type, Exception inner = null)
|
|
: base(message, inner)
|
|
{
|
|
this.id = id;
|
|
|
|
typeName = type?.Name;
|
|
}
|
|
}
|
|
}
|
|
|