Class RdfParseException
Class for representing errors in parsing RDF.
Inheritance
Implements
Inherited Members
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public class RdfParseException : RdfException, ISerializable
Constructors
| Edit this page View SourceRdfParseException(string)
Creates a new RDF Parse Exception with the given Message.
Declaration
public RdfParseException(string errorMsg)
Parameters
Type | Name | Description |
---|---|---|
string | errorMsg | Error Message. |
RdfParseException(string, Exception)
Creates a new RDF Parse Exception with the given Message and Inner Exception.
Declaration
public RdfParseException(string errorMsg, Exception cause)
Parameters
Type | Name | Description |
---|---|---|
string | errorMsg | Error Message. |
Exception | cause | Inner Exception. |
RdfParseException(string, int, int)
Creates a new RDF Parse Exception which contains Position Information.
Declaration
public RdfParseException(string errorMsg, int line, int pos)
Parameters
Type | Name | Description |
---|---|---|
string | errorMsg | Error Message. |
int | line | Line the error occurred on. |
int | pos | Column Position the error occurred at. |
RdfParseException(string, int, int, Exception)
Creates a new RDF Parse Exception which contains Position Information.
Declaration
public RdfParseException(string errorMsg, int line, int pos, Exception cause)
Parameters
Type | Name | Description |
---|---|---|
string | errorMsg | Error Message. |
int | line | Line the error occurred on. |
int | pos | Column Position the error occurred at. |
Exception | cause | Exeception that caused this exception. |
RdfParseException(string, int, int, int)
Creates a new RDF Parse Exception which contains Position Information.
Declaration
public RdfParseException(string errorMsg, int line, int startPos, int endPos)
Parameters
Type | Name | Description |
---|---|---|
string | errorMsg | Error Message. |
int | line | Line the error occurred on. |
int | startPos | Column Position the error starts at. |
int | endPos | Column Position the error ends at. |
RdfParseException(string, int, int, int, Exception)
Creates a new RDF Parse Exception which contains Position Information.
Declaration
public RdfParseException(string errorMsg, int line, int startPos, int endPos, Exception cause)
Parameters
Type | Name | Description |
---|---|---|
string | errorMsg | Error Message. |
int | line | Line the error occurred on. |
int | startPos | Column Position the error starts at. |
int | endPos | Column Position the error ends at. |
Exception | cause | Error that caused this exception. |
RdfParseException(string, int, int, int, int)
Creates a new RDF Parse Exception which contains Position Information.
Declaration
public RdfParseException(string errorMsg, int startLine, int endLine, int startPos, int endPos)
Parameters
Type | Name | Description |
---|---|---|
string | errorMsg | Error Message. |
int | startLine | Line the error starts on. |
int | endLine | Line the error ends on. |
int | startPos | Column Position the error starts at. |
int | endPos | Column Position the error ends at. |
RdfParseException(string, int, int, int, int, Exception)
Creates a new RDF Parse Exception which contains Position Information.
Declaration
public RdfParseException(string errorMsg, int startLine, int endLine, int startPos, int endPos, Exception cause)
Parameters
Type | Name | Description |
---|---|---|
string | errorMsg | Error Message. |
int | startLine | Line the error starts on. |
int | endLine | Line the error ends on. |
int | startPos | Column Position the error starts at. |
int | endPos | Column Position the error ends at. |
Exception | cause | Error that caused this exception. |
RdfParseException(string, PositionInfo)
Creates a new RDF Parse Exception which contains Position Information.
Declaration
public RdfParseException(string errorMsg, PositionInfo position)
Parameters
Type | Name | Description |
---|---|---|
string | errorMsg | Error Message. |
PositionInfo | position | Position Information. |
RdfParseException(string, PositionInfo, Exception)
Creates a new RDF Parse Exception which contains Position Information.
Declaration
public RdfParseException(string errorMsg, PositionInfo position, Exception cause)
Parameters
Type | Name | Description |
---|---|---|
string | errorMsg | Error Message. |
PositionInfo | position | Position Information. |
Exception | cause | Error that caused this exception. |
RdfParseException(string, IToken)
Creates a new RDF Parse Exception which contains Position Information taken from the given Token.
Declaration
public RdfParseException(string errorMsg, IToken t)
Parameters
Type | Name | Description |
---|---|---|
string | errorMsg | Error Message. |
IToken | t | Token. |
RdfParseException(string, IToken, Exception)
Creates a new RDF Parse Exception which contains Position Information taken from the given Token.
Declaration
public RdfParseException(string errorMsg, IToken t, Exception cause)
Parameters
Type | Name | Description |
---|---|---|
string | errorMsg | Error Message. |
IToken | t | Token. |
Exception | cause | Inner Exception. |
Properties
| Edit this page View SourceEndLine
Gets the End Line of the Error or -1 if no position information.
Declaration
public int EndLine { get; }
Property Value
Type | Description |
---|---|
int |
EndPosition
Gets the End Column of the Error or -1 if no position information.
Declaration
public int EndPosition { get; }
Property Value
Type | Description |
---|---|
int |
HasPositionInformation
Gets whether the Exception has any position information.
Declaration
public bool HasPositionInformation { get; }
Property Value
Type | Description |
---|---|
bool |
StartLine
Gets the Start Line of the Error or -1 if no position information.
Declaration
public int StartLine { get; }
Property Value
Type | Description |
---|---|
int |
StartPosition
Gets the Start Column of the Error or -1 if no position information.
Declaration
public int StartPosition { get; }
Property Value
Type | Description |
---|---|
int |