Skip to content

NavigationException

Namespace: PuppeteerSharp

[Serializable]
public class NavigationException : PuppeteerException, ISerializable

Exception thrown when a IPage fails to navigate an URL.

Inheritance: object → Exception → PuppeteerException

Implements: ISerializable

View source

public NavigationException()

Initializes a new instance of the NavigationException class.

View source

public NavigationException(string message)

Initializes a new instance of the NavigationException class.

Parameters

Name Type Description
message string Message.

View source

public NavigationException(string message, Exception innerException)

Initializes a new instance of the NavigationException class.

Parameters

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

View source

Section titled “NavigationException(string, string, Exception)”
public NavigationException(string message, string url, Exception innerException = null)

Initializes a new instance of the NavigationException class.

Parameters

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

View source

public override string Message { get; }

Gets a message that describes the current exception.

Value: string — The error message that explains the reason for the exception, or an empty string (“”).

View source

public string Url { get; }

Url that caused the exception.

Value: string — The URL.

View source

Made with love by Dario Kondratiuk