ExceptionDetails

@Serializable
data class ExceptionDetails(val exceptionId: Int, val text: String, val lineNumber: Int, val columnNumber: Int, val scriptId: String? = null, val url: String? = null, val stackTrace: Runtime.StackTrace? = null, val exception: Runtime.RemoteObject? = null, val executionContextId: Int? = null, val exceptionMetaData: Map<String, JsonElement>? = null)

Detailed information about exception (or error) that was thrown during script compilation or execution.

Constructors

Link copied to clipboard
constructor(exceptionId: Int, text: String, lineNumber: Int, columnNumber: Int, scriptId: String? = null, url: String? = null, stackTrace: Runtime.StackTrace? = null, exception: Runtime.RemoteObject? = null, executionContextId: Int? = null, exceptionMetaData: Map<String, JsonElement>? = null)

Properties

Link copied to clipboard

Column number of the exception location (0-based).

Link copied to clipboard

Exception object if available.

Link copied to clipboard

Exception id.

Link copied to clipboard
val exceptionMetaData: Map<String, JsonElement>? = null

Dictionary with entries of meta data that the client associated with this exception, such as information about associated network requests, etc.

Link copied to clipboard
val executionContextId: Int? = null

Identifier of the context where exception happened.

Link copied to clipboard

Line number of the exception location (0-based).

Link copied to clipboard
val scriptId: String? = null

Script ID of the exception location.

Link copied to clipboard

JavaScript stack trace if available.

Link copied to clipboard

Exception text, which should be used together with exception object when available.

Link copied to clipboard
val url: String? = null

URL of the exception location, to be used when the script was not reported.