KumiScript/parser/ParserExceptions.cs

62 lines
1.6 KiB
C#
Raw Normal View History

2024-01-26 05:37:51 +00:00
using System.Runtime.Serialization;
namespace KumiScript.Reader
{
[Serializable]
internal class ParserEndOfFileException : Exception
{
public ParserEndOfFileException()
{
}
public ParserEndOfFileException(string? message) : base(message)
{
}
public ParserEndOfFileException(string? message, Exception? innerException) : base(message, innerException)
{
}
protected ParserEndOfFileException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
internal class ParserUnexpectedTokenException : Exception
{
public ParserUnexpectedTokenException()
{
}
public ParserUnexpectedTokenException(string? message) : base(message)
{
}
public ParserUnexpectedTokenException(string? message, Exception? innerException) : base(message, innerException)
{
}
protected ParserUnexpectedTokenException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
internal class ParserUnexpectedEndOfFileException : Exception
{
public ParserUnexpectedEndOfFileException()
{
}
public ParserUnexpectedEndOfFileException(string? message) : base(message)
{
}
public ParserUnexpectedEndOfFileException(string? message, Exception? innerException) : base(message, innerException)
{
}
protected ParserUnexpectedEndOfFileException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
}