CSGO-Projects/Shared/LoreSoft.MathExpressions/ParseException.cs
MathiasL 50ac34fb28 Add hacky damage displayer (Will get refactored)
* Change Shared namespace to SteamShared
* Add damage displayer which also calculates, gets local weather and fuel prices
* API Key for tankerkoenig has to be supplied because I didn't push it
2022-05-20 22:20:45 +02:00

40 lines
1.6 KiB
C#

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