private async Task ContinueAndDetachIfTerminated(OracleDebugBreakFlags breakFlags, CancellationToken cancellationToken) { CurrentException = null; await Continue(breakFlags, cancellationToken); if (_runtimeInfo.Reason == OracleDebugReason.Exception) { CurrentException = new DatabaseExceptionInformation { ErrorCode = _runtimeInfo.OerException.Value, ErrorMessage = await GetOracleExceptionMessage(_runtimeInfo.OerException.Value, cancellationToken) }; } if (_runtimeInfo.IsTerminated == true) { await Detach(cancellationToken); } }
private async Task ContinueAndDetachIfTerminated(OracleDebugBreakFlags breakFlags, CancellationToken cancellationToken) { CurrentException = null; await Continue(breakFlags, cancellationToken); if (_runtimeInfo.Reason == OracleDebugReason.Exception) { CurrentException = new DatabaseExceptionInformation { ErrorCode = _runtimeInfo.OerException.Value, ErrorMessage = await GetOracleExceptionMessage(_runtimeInfo.OerException.Value, cancellationToken) }; } if (_runtimeInfo.IsTerminated == true) { await Detach(cancellationToken); } }