setExceptionPauseMode method

  1. @Deprecated('Use setIsolatePauseMode instead')
Future<Success> setExceptionPauseMode(
  1. String isolateId,
  2. String mode
)

The setExceptionPauseMode RPC is used to control if an isolate pauses when an exception is thrown.

mode meaning
None Do not pause isolate on thrown exceptions
Unhandled Pause isolate on unhandled exceptions
All Pause isolate on all thrown exceptions

If isolateId refers to an isolate which has exited, then the Collected Sentinel is returned.

This method will throw a SentinelException in the case a Sentinel is returned.

Implementation

@Deprecated('Use setIsolatePauseMode instead')
Future<Success> setExceptionPauseMode(
        String isolateId, /*ExceptionPauseMode*/ String mode) =>
    _call('setExceptionPauseMode', {'isolateId': isolateId, 'mode': mode});