Skip to content

PageErrorEventArgs

Namespace: PuppeteerSharp

public class PageErrorEventArgs : EventArgs

Page error event arguments.

Inheritance: object → EventArgs

View source

public PageErrorEventArgs(string message)

Initializes a new instance of the PageErrorEventArgs class.

Parameters

Name Type Description
message string Message.

View source

public PageErrorEventArgs(string message, object error)

Initializes a new instance of the PageErrorEventArgs class.

Parameters

Name Type Description
message string Message.
error object Raw error value.

View source

PageErrorEventArgs(string, object, IReadOnlyList<ConsoleMessageLocation>)

Section titled “PageErrorEventArgs(string, object, IReadOnlyList<ConsoleMessageLocation>)”
public PageErrorEventArgs(string message, object error, IReadOnlyList<ConsoleMessageLocation> stackTrace)

Initializes a new instance of the PageErrorEventArgs class.

Parameters

Name Type Description
message string Message.
error object Raw error value.
stackTrace IReadOnlyList<ConsoleMessageLocation> Stack trace, innermost frame first.

View source

public object Error { get; }

Gets the raw error value. This can be an string for standard errors, or any other type (including null) when the page throws a primitive value.

Value: object

View source

public string Message { get; set; }

Error Message.

Value: string — The message.

View source

public IReadOnlyList<ConsoleMessageLocation> StackTrace { get; }

Gets the stack trace of the error, innermost frame first. Empty when the browser did not report one.

Value: IReadOnlyList<ConsoleMessageLocation>

View source

Made with love by Dario Kondratiuk