setExceptionPauseMode method Null safety

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

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

NoneDo not pause isolate on thrown exceptions
UnhandledPause isolate on unhandled exceptions
AllPause 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.


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