Skip to content

SelectorException

Namespace: PuppeteerSharp

[Serializable]
public class SelectorException : PuppeteerException, ISerializable

Exception thrown when an element selector returns null.

Inheritance: object → Exception → PuppeteerException

Implements: ISerializable

View source

public SelectorException()

Initializes a new instance of the SelectorException class.

View source

public SelectorException(string message)

Initializes a new instance of the SelectorException class.

Parameters

Name Type Description
message string Message.

View source

public SelectorException(string message, Exception innerException)

Initializes a new instance of the SelectorException class.

Parameters

Name Type Description
message string Message.
innerException Exception Inner exception.

View source

public SelectorException(string message, string selector)

Initializes a new instance of the SelectorException class.

Parameters

Name Type Description
message string Message.
selector string Selector.

View source

public string Selector { get; }

Gets the selector.

Value: string — The selector.

View source

Made with love by Dario Kondratiuk