CodeOwnersParseException Class
The exception thrown by CodeOwnersFile.Parse when a CODEOWNERS file is invalid.
public sealed class CodeOwnersParseException : Exception- Inheritance
ExceptionCodeOwnersParseException
Constructors
| Name | Description |
|---|---|
| CodeOwnersParseException() | Initializes a new instance of CodeOwnersParseException. |
| CodeOwnersParseException(string?) | Initializes a new instance of CodeOwnersParseException with the specified message. |
| CodeOwnersParseException(string?, Exception?) | Initializes a new instance of CodeOwnersParseException with the specified message and inner exception. |
CodeOwnersParseException overloads
CodeOwnersParseException()
CodeOwnersParseException.csInitializes a new instance of CodeOwnersParseException.
public CodeOwnersParseException()CodeOwnersParseException(string?)
CodeOwnersParseException.csInitializes a new instance of CodeOwnersParseException with the specified message.
public CodeOwnersParseException(string? message)Parameters
messagestring?
CodeOwnersParseException(string?, Exception?)
CodeOwnersParseException.csInitializes a new instance of CodeOwnersParseException with the specified message and inner exception.
Parameters
messagestring?innerExceptionException?
Properties
| Name | Description |
|---|---|
| Error | Gets the error that made the file invalid. Its CodeOwnersParseError.LineNumber is 0 when the exception was not created by the parser. |
Gets the error that made the file invalid. Its CodeOwnersParseError.LineNumber is 0 when the exception was not created by the parser.
public CodeOwnersParseError Error { get; }