/Exceptions.cs
C# | 109 lines | 84 code | 20 blank | 5 comment | 0 complexity | 65828fbd737c3b75a445a70ed3648949 MD5 | raw file
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Runtime.Serialization;
- using System.Runtime.Serialization.Formatters;
- namespace Compiler_
- {
- //Truncation error for Characters > 31
- class TruncationCharErrorException : Exception, ISerializable
- {
- public TruncationCharErrorException()
- {
- }
- public TruncationCharErrorException(string message)
- {
- }
- public TruncationCharErrorException(string message, Exception inner)
- {
- }
- public TruncationCharErrorException(SerializationInfo info, StreamingContext context)
- {
- }
- }
- //Syntax error for unexpected syntax mismatches
- class SyntaxErrorException : Exception, ISerializable
- {
- public SyntaxErrorException()
- {
- }
- public SyntaxErrorException(string message)
- {
- }
- public SyntaxErrorException(string message, Exception inner)
- {
- }
- public SyntaxErrorException(SerializationInfo info, StreamingContext context)
- {
- }
- }
- //Bad identifier Format such as 1A
- class BadIdentifierFormatException : Exception, ISerializable
- {
- public BadIdentifierFormatException()
- {
- }
- public BadIdentifierFormatException(string message)
- {
- }
- public BadIdentifierFormatException(string message, Exception inner)
- {
- }
- public BadIdentifierFormatException(SerializationInfo info, StreamingContext context)
- {
- }
- }
- //Bad identifier Format such as 1A
- class TokenTypeMismatchException : Exception, ISerializable
- {
- public TokenTypeMismatchException()
- {
- }
- public TokenTypeMismatchException(string message)
- {
- }
- public TokenTypeMismatchException(string message, Exception inner)
- {
- }
- public TokenTypeMismatchException(SerializationInfo info, StreamingContext context)
- {
- }
- }
- //Kludge to restart program. Whatever.
- class RestartException : Exception, ISerializable
- {
- public RestartException()
- {
- }
- public RestartException(string message)
- {
- }
- public RestartException(string message, Exception inner)
- {
- }
- public RestartException(SerializationInfo info, StreamingContext context)
- {
- }
- }
- }