System.Web.ParserError Class

Represents a parser error or warning. This class cannot be inherited.

See Also: ParserError Members


public sealed class ParserError


A System.Web.ParserError object represents an error that is created when an System.Web.HttpParseException exception is thrown. A parser error object can contain error message text, a virtual path to the file where the error occurred, and the subsequent line number of the error in that file. If more than one parser error occurs or you want to store multiple parser errors in a centralized location, use the System.Web.ParserErrorCollection object.

A parser error is of the type System.Web.HttpException. For more information on exceptions and how to handle them, go to tp://


Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0