using System;
using System.Runtime.Serialization;
namespace LoreSoft.MathExpressions
{
///
/// The exception that is thrown when there is an error parsing a math expression.
///
[Serializable]
public class ParseException : Exception
{
/// Initializes a new instance of the class.
public ParseException()
: base()
{ }
/// Initializes a new instance of the class.
/// The message.
public ParseException(string message)
: base(message)
{ }
/// Initializes a new instance of the class.
/// The message.
/// The inner exception.
public ParseException(string message, Exception innerException)
: base(message, innerException)
{ }
///
/// Initializes a new instance of the class with serialized data.
///
/// The SerializationInfo that holds the serialized object data about the exception being thrown.
/// The StreamingContext that contains contextual information about the source or destination.
protected ParseException(SerializationInfo info, StreamingContext context)
: base(info, context)
{ }
}
}