using System; using System.Runtime.Serialization; namespace Deltares.Dam.Data { [Serializable] public class RequiredEntityNotExistException : Exception { public RequiredEntityNotExistException(string messageFormat, Type type, object idValue) : base(string.Format(messageFormat, type.Name, idValue), null) { } public RequiredEntityNotExistException(string messageFormat, Type type, object idValue, Exception inner) : base(string.Format(messageFormat, type.Name, idValue), inner) { } protected RequiredEntityNotExistException( SerializationInfo info, StreamingContext context) : base(info, context) { } } }