using System; using System.Runtime.Serialization; namespace Deltares.Maps { [Serializable] public class AttributeWrongValueException : Exception { private const string MessagePattern = "The value {0} of attribute {1} is wrong (beyond its limits ({2} - {3})). Please check the specified value(s)."; public AttributeWrongValueException(string attributeName, double value, double min, double max) : base(string.Format(MessagePattern, value, attributeName, min, max)) { } protected AttributeWrongValueException( SerializationInfo info, StreamingContext context) : base(info, context) { } } }