| 12345678910111213141516171819 |
- using System;
- using Quadarax.Foundation.Core.Exceptions;
- namespace BO.AppServer.Business.Exceptions
- {
- public class EntityNotExistsException : CodeException
- {
- private const string CS_MESSAGE = "Entity '{0}' named '{1}' [{2}] not exists in database.";
- private const int CN_CODE = 1001;
- public EntityNotExistsException(Type entityType, string name,long id, Exception innerException) : base(CN_CODE, string.Format(CS_MESSAGE, entityType.Name, name, id), innerException)
- {
- }
- public EntityNotExistsException(Type entityType, string name, long id) : base(CN_CODE, string.Format(CS_MESSAGE, entityType.Name, name, id))
- {
- }
- }
- }
|