using System; using System.Runtime.Serialization; namespace Deltares.Maps { [Serializable] public class AttributeMissingException : Exception { private const string MessagePattern = "Attribute {0} is missing or not supported. Check the mapping with the column in the ShapeFile"; public AttributeMissingException(string attributeName) : base(string.Format(MessagePattern, attributeName)) { } protected AttributeMissingException( SerializationInfo info, StreamingContext context) : base(info, context) { } } }