getExceptionDetails method
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.
errorObjectId
The error object for which to resolve the exception details.
Implementation
Future<ExceptionDetails> getExceptionDetails(
RemoteObjectId errorObjectId) async {
var result = await _client.send('Runtime.getExceptionDetails', {
'errorObjectId': errorObjectId,
});
return ExceptionDetails.fromJson(
result['exceptionDetails'] as Map<String, dynamic>);
}