ScriptError Class
The information of an exception reported by the library (https://html.spec.whatwg.org/multipage/webappapis.html#extract-error): the attributes of the ErrorEvent fired at the window.
public sealed class ScriptErrorConstructors
| Name | Description |
|---|---|
| ScriptError(string, object?) | Creates the information of an exception. |
ScriptError(string, object?)
ScriptError.csCreates the information of an exception.
Parameters
messagestring- The message of the error.
errorobject?- The exception value (the
errorattribute of theErrorEvent): a value of the script engine, or a .NET exception.
Properties
| Name | Description |
|---|---|
| ColumnNumber | Gets the column number where the error occurred (1-based), or 0. |
| Error | Gets the exception value: a value of the script engine, or a .NET exception. It is null for a muted error (the error attribute of the ErrorEvent is then null). |
| Filename | Gets the URL of the script where the error occurred, or an empty string. |
| LineNumber | Gets the line number where the error occurred (1-based), or 0. |
| Message | Gets the message of the error. |
ColumnNumber
ScriptError.csError
ScriptError.csGets the exception value: a value of the script engine, or a .NET exception. It is null for a muted error (the error attribute of the ErrorEvent is then null).
public object? Error { get; }Property value
Filename
ScriptError.csLineNumber
ScriptError.csMessage
ScriptError.csMethods
| Name | Description |
|---|---|
| ToString() | Returns a string that represents the current object. |