RobotsParseError Class
Describes a single non-fatal parse error encountered while reading a robots.txt file.
public sealed class RobotsParseErrorRemarks
The parser is lenient and always skips lines it cannot interpret, but each skipped or unrecognised line is recorded as a RobotsParseError in RobotsFile.ParseErrors so callers can audit file quality.
Constructors
| Name | Description |
|---|---|
| RobotsParseError(int, string, RobotsParseErrorKind) |
RobotsParseError(int, string, RobotsParseErrorKind)
RobotsParseError.cspublic RobotsParseError(int lineNumber, string line, RobotsParseErrorKind kind)Parameters
lineNumberintlinestringkindRobotsParseErrorKind
No documentation is available.
Properties
| Name | Description |
|---|---|
| Kind | Gets the kind of error that was detected. |
| Line | Gets the raw text of the offending line (before comment stripping and whitespace trimming). |
| LineNumber | Gets the 1-based line number where the error occurred. |
LineNumber
RobotsParseError.csMethods
| Name | Description |
|---|---|
| ToString() | Returns a string that represents the current object. |