PageErrorEventArgs
Namespace: PuppeteerSharp
public class PageErrorEventArgs : EventArgsPage error event arguments.
Inheritance: object → EventArgs
Constructors
Section titled “Constructors”PageErrorEventArgs(string)
Section titled “PageErrorEventArgs(string)”public PageErrorEventArgs(string message)Initializes a new instance of the PageErrorEventArgs class.
Parameters
| Name | Type | Description |
|---|---|---|
message |
string | Message. |
PageErrorEventArgs(string, object)
Section titled “PageErrorEventArgs(string, object)”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. |
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. |
Properties
Section titled “Properties”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
Message
Section titled “Message”public string Message { get; set; }Error Message.
Value: string — The message.
StackTrace
Section titled “StackTrace”public IReadOnlyList<ConsoleMessageLocation> StackTrace { get; }Gets the stack trace of the error, innermost frame first. Empty when the browser did not report one.
Made with love by Dario Kondratiuk