NavigationException
Namespace: PuppeteerSharp
[Serializable]public class NavigationException : PuppeteerException, ISerializableException thrown when a IPage fails to navigate an URL.
Inheritance: object → Exception → PuppeteerException
Implements: ISerializable
Constructors
Section titled “Constructors”NavigationException()
Section titled “NavigationException()”public NavigationException()Initializes a new instance of the NavigationException class.
NavigationException(string)
Section titled “NavigationException(string)”public NavigationException(string message)Initializes a new instance of the NavigationException class.
Parameters
| Name | Type | Description |
|---|---|---|
message |
string | Message. |
NavigationException(string, Exception)
Section titled “NavigationException(string, Exception)”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. |
NavigationException(string, string, Exception)
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. |
Properties
Section titled “Properties”Message
Section titled “Message”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 (“”).
public string Url { get; }Url that caused the exception.
Value: string — The URL.
Made with love by Dario Kondratiuk