Table of Contents

Class NavigationException

Namespace
PuppeteerSharp
Assembly
PuppeteerSharp.dll

Exception thrown when a IPage fails to navigate an URL.

[Serializable]
public class NavigationException : PuppeteerException, ISerializable
Inheritance
NavigationException
Implements

Constructors

NavigationException()

Initializes a new instance of the NavigationException class.

public NavigationException()

NavigationException(SerializationInfo, StreamingContext)

Initializes a new instance of the NavigationException class.

protected NavigationException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

Info.

context StreamingContext

Context.

NavigationException(string)

Initializes a new instance of the NavigationException class.

public NavigationException(string message)

Parameters

message string

Message.

NavigationException(string, Exception)

Initializes a new instance of the NavigationException class.

public NavigationException(string message, Exception innerException)

Parameters

message string

Message.

innerException Exception

Inner exception.

NavigationException(string, string)

Initializes a new instance of the NavigationException class.

public NavigationException(string message, string url)

Parameters

message string

Message.

url string

Url.

Properties

Message

Gets a message that describes the current exception.

public override string Message { get; }

Property Value

string

The error message that explains the reason for the exception, or an empty string ("").

Url

Url that caused the exception.

public string Url { get; }

Property Value

string

The URL.