跳到主要内容
版本:Next

Class ParsingException

Assembly: RCaron.dll
View Source
Declaration
csharp
public class ParsingException : RCaronException, ISerializable
Declaration
csharp
public class ParsingException : RCaronException, ISerializable

Inheritance: System.Object -> System.Exception -> RCaron.RCaronException

Implements:
System.Runtime.Serialization.ISerializable

Properties

Location

View Source
Declaration
csharp
public TextSpan Location { get; }
Declaration
csharp
public TextSpan Location { get; }

Methods

InvalidUnicodeEscape(ReadOnlySpan<char>, TextSpan)

View Source
Declaration
csharp
public static ParsingException InvalidUnicodeEscape(ReadOnlySpan<char> escape, TextSpan location)
Declaration
csharp
public static ParsingException InvalidUnicodeEscape(ReadOnlySpan<char> escape, TextSpan location)
Returns

RCaron.Parsing.ParsingException

Parameters
TypeName
System.ReadOnlySpan<System.Char>escape
RCaron.Parsing.TextSpanlocation

TooShortUnicodeEscape(ReadOnlySpan<char>, int, TextSpan)

View Source
Declaration
csharp
public static ParsingException TooShortUnicodeEscape(ReadOnlySpan<char> escape, int expectedLength, TextSpan location)
Declaration
csharp
public static ParsingException TooShortUnicodeEscape(ReadOnlySpan<char> escape, int expectedLength, TextSpan location)
Returns

RCaron.Parsing.ParsingException

Parameters
TypeName
System.ReadOnlySpan<System.Char>escape
System.Int32expectedLength
RCaron.Parsing.TextSpanlocation

InvalidEscapeSequence(char, TextSpan)

View Source
Declaration
csharp
public static ParsingException InvalidEscapeSequence(char c, TextSpan location)
Declaration
csharp
public static ParsingException InvalidEscapeSequence(char c, TextSpan location)
Returns

RCaron.Parsing.ParsingException

Parameters
TypeName
System.Charc
RCaron.Parsing.TextSpanlocation

InvalidLine(int, TextSpan)

View Source
Declaration
csharp
public static ParsingException InvalidLine(int lineNumber, TextSpan location)
Declaration
csharp
public static ParsingException InvalidLine(int lineNumber, TextSpan location)
Returns

RCaron.Parsing.ParsingException

Parameters
TypeName
System.Int32lineNumber
RCaron.Parsing.TextSpanlocation

LonelyVariableStart(TextSpan)

View Source
Declaration
csharp
public static ParsingException LonelyVariableStart(TextSpan location)
Declaration
csharp
public static ParsingException LonelyVariableStart(TextSpan location)
Returns

RCaron.Parsing.ParsingException

Parameters
TypeName
RCaron.Parsing.TextSpanlocation

ExpectedConstant(TextSpan)

View Source
Declaration
csharp
public static ParsingException ExpectedConstant(TextSpan location)
Declaration
csharp
public static ParsingException ExpectedConstant(TextSpan location)
Returns

RCaron.Parsing.ParsingException

Parameters
TypeName
RCaron.Parsing.TextSpanlocation

InvalidHexNumber(TextSpan)

View Source
Declaration
csharp
public static ParsingException InvalidHexNumber(TextSpan location)
Declaration
csharp
public static ParsingException InvalidHexNumber(TextSpan location)
Returns

RCaron.Parsing.ParsingException

Parameters
TypeName
RCaron.Parsing.TextSpanlocation

InvalidNumberSuffix(TextSpan, bool, bool)

View Source
Declaration
csharp
public static ParsingException InvalidNumberSuffix(TextSpan location, bool unsignedOnFloatingPoint = false, bool hexOnFloatingPoint = false)
Declaration
csharp
public static ParsingException InvalidNumberSuffix(TextSpan location, bool unsignedOnFloatingPoint = false, bool hexOnFloatingPoint = false)
Returns

RCaron.Parsing.ParsingException

Parameters
TypeName
RCaron.Parsing.TextSpanlocation
System.BooleanunsignedOnFloatingPoint
System.BooleanhexOnFloatingPoint

InvalidClassMember(LineType, TextSpan)

View Source
Declaration
csharp
public static ParsingException InvalidClassMember(LineType lineType, TextSpan location)
Declaration
csharp
public static ParsingException InvalidClassMember(LineType lineType, TextSpan location)
Returns

RCaron.Parsing.ParsingException

Parameters
TypeName
RCaron.LineTypelineType
RCaron.Parsing.TextSpanlocation

StaticPropertyWithoutInitializer(string, TextSpan)

View Source
Declaration
csharp
public static ParsingException StaticPropertyWithoutInitializer(string propertyName, TextSpan location)
Declaration
csharp
public static ParsingException StaticPropertyWithoutInitializer(string propertyName, TextSpan location)
Returns

RCaron.Parsing.ParsingException

Parameters
TypeName
System.StringpropertyName
RCaron.Parsing.TextSpanlocation

InvalidCharacterLiteral(TextSpan)

View Source
Declaration
csharp
public static ParsingException InvalidCharacterLiteral(TextSpan location)
Declaration
csharp
public static ParsingException InvalidCharacterLiteral(TextSpan location)
Returns

RCaron.Parsing.ParsingException

Parameters
TypeName
RCaron.Parsing.TextSpanlocation

UnterminatedString(TextSpan)

View Source
Declaration
csharp
public static ParsingException UnterminatedString(TextSpan location)
Declaration
csharp
public static ParsingException UnterminatedString(TextSpan location)
Returns

RCaron.Parsing.ParsingException

Parameters
TypeName
RCaron.Parsing.TextSpanlocation

UnterminatedCharacterLiteral(TextSpan)

View Source
Declaration
csharp
public static ParsingException UnterminatedCharacterLiteral(TextSpan location)
Declaration
csharp
public static ParsingException UnterminatedCharacterLiteral(TextSpan location)
Returns

RCaron.Parsing.ParsingException

Parameters
TypeName
RCaron.Parsing.TextSpanlocation

Implements

  • System.Runtime.Serialization.ISerializable

Extension Methods