← Back to Runtime domain

Runtime.getExceptionDetails

This method tries to lookup and populate exception details for a JavaScript Error object. Note that the stackTrace portion of the resulting exceptionDetails will only be populated if the Runtime domain was enabled at the time when the Error was thrown.

Domain: Runtime experimental

Parameters

NameTypeDescription
errorObjectIdRemoteObjectIdThe error object for which to resolve the exception details.

Returns

NameTypeDescription
exceptionDetailsExceptionDetails

Example Request

{
  "id": 1,
  "method": "Runtime.getExceptionDetails",
  "params": {
    "errorObjectId": "errorObjectId-value"
  }
}

Example Response

{
  "id": 1,
  "result": {
    "exceptionDetails": "exceptionDetails-value"
  }
}

Usage in Node.js

const result = await send('Runtime.getExceptionDetails', {"errorObjectId": "errorObjectId-value"});
console.log(result);
// {"exceptionDetails": "exceptionDetails-value"}