Table of Contents

Class ImportStep.SyntaxError

Namespace
CADability
Assembly
CADability.dll

Thrown while Read(string) parses the file when it does not follow the ISO 10303-21 syntax, e.g. when an expected delimiter is missing. Read(string) catches it and reports the message in Problems; the message names the offending line.

public class ImportStep.SyntaxError : ApplicationException, ISerializable
Inheritance
ImportStep.SyntaxError
Implements
Inherited Members

Constructors

SyntaxError(string)

Creates the exception with a general message.

public SyntaxError(string msg)

Parameters

msg string

describes the problem

SyntaxError(string, int, char)

Creates the exception for a missing delimiter: expected was not found at position start of line.

public SyntaxError(string line, int start, char expected)

Parameters

line string

the line of the file being parsed

start int

the position in the line where the character was expected (not part of the message)

expected char

the character that was expected