TargetClosedException
Namespace: PuppeteerSharp
[Serializable]public class TargetClosedException : PuppeteerException, ISerializableException thrown by the Connection when it detects that the target was closed.
Inheritance: object → Exception → PuppeteerException
Implements: ISerializable
Constructors
Section titled “Constructors”TargetClosedException()
Section titled “TargetClosedException()”public TargetClosedException()Initializes a new instance of the TargetClosedException class.
TargetClosedException(string)
Section titled “TargetClosedException(string)”public TargetClosedException(string message)Initializes a new instance of the TargetClosedException class.
Parameters
| Name | Type | Description |
|---|---|---|
message |
string | Message. |
TargetClosedException(string, Exception)
Section titled “TargetClosedException(string, Exception)”public TargetClosedException(string message, Exception innerException)Initializes a new instance of the TargetClosedException class.
Parameters
| Name | Type | Description |
|---|---|---|
message |
string | Message. |
innerException |
Exception | Inner exception. |
TargetClosedException(string, string)
Section titled “TargetClosedException(string, string)”public TargetClosedException(string message, string closeReason)Initializes a new instance of the TargetClosedException class.
Parameters
| Name | Type | Description |
|---|---|---|
message |
string | Message. |
closeReason |
string | Close reason. |
Properties
Section titled “Properties”CloseReason
Section titled “CloseReason”public string CloseReason { get; }Close Reason.
Value: string — The close reason.
Made with love by Dario Kondratiuk