setExceptionPauseMode method Null safety

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

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

modemeaning
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.

Implementation

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