using System;
using System.Runtime.Serialization;
namespace GisSharpBlog.NetTopologySuite.IO
{
///
/// The exception that is thrown when a non-fatal application error occurs related to Topology functionality.
///
internal class ShapefileException : ApplicationException
{
///
/// Initializes a new instance of the ShapefileException class.
///
public ShapefileException() { }
///
/// Initializes a new instance of the ShapefileException class with a specified error message.
///
/// A message that describes the error.
public ShapefileException(string message) : base(message) { }
///
/// Initializes a new instance of the ApplicationException class with serialized data.
///
/// The object that holds the serialized object data.
/// The contextual information about the source or destination.
public ShapefileException(SerializationInfo info,StreamingContext context) : base(info, context) { }
///
/// Initializes a new instance of the ApplicationException class with a specified error message and a reference to the inner exception that is the cause of this exception.
///
/// The error message that explains the reason for the exception.
/// The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception
public ShapefileException(string message, Exception innerException) : base(message, innerException) { }
}
}