Table of Contents

Class TargetClosedException

Namespace
PuppeteerSharp
Assembly
PuppeteerSharp.dll

Exception thrown by the Connection when it detects that the target was closed.

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

Constructors

TargetClosedException()

Initializes a new instance of the TargetClosedException class.

public TargetClosedException()

TargetClosedException(SerializationInfo, StreamingContext)

Initializes a new instance of the TargetClosedException class.

protected TargetClosedException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The serialization collection for custom serializations.

context StreamingContext

Provides additional caller-provided context.

TargetClosedException(string)

Initializes a new instance of the TargetClosedException class.

public TargetClosedException(string message)

Parameters

message string

Message.

TargetClosedException(string, Exception)

Initializes a new instance of the TargetClosedException class.

public TargetClosedException(string message, Exception innerException)

Parameters

message string

Message.

innerException Exception

Inner exception.

TargetClosedException(string, string)

Initializes a new instance of the TargetClosedException class.

public TargetClosedException(string message, string closeReason)

Parameters

message string

Message.

closeReason string

Close reason.

Properties

CloseReason

Close Reason.

public string CloseReason { get; }

Property Value

string

The close reason.