Skip to content

TargetClosedException

Namespace: PuppeteerSharp

[Serializable]
public class TargetClosedException : PuppeteerException, ISerializable

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

Inheritance: object → Exception → PuppeteerException

Implements: ISerializable

View source

public TargetClosedException()

Initializes a new instance of the TargetClosedException class.

View source

public TargetClosedException(string message)

Initializes a new instance of the TargetClosedException class.

Parameters

Name Type Description
message string Message.

View source

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.

View source

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.

View source

public string CloseReason { get; }

Close Reason.

Value: string — The close reason.

View source

Made with love by Dario Kondratiuk