fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (39)
294throw SQL.BulkLoadConflictingTransactionOption();
336throw SQL.BulkLoadInvalidTimeout(value);
434throw SQL.BulkLoadInvalidDestinationTable(this.DestinationTableName, e);
437throw SQL.BulkLoadInvalidDestinationTable(this.DestinationTableName, null);
539throw SQL.BulkLoadNoCollation();
559throw SQL.BulkLoadExistingTransaction();
693throw SQL.BulkLoadLcidMismatch(sourceLcid, _SqlDataReaderRowSource.GetName(sourceColumnId), destinationLcid, metadata.column);
710throw (SQL.BulkLoadNonMatchingColumnMapping());
791throw SQL.InvalidOperationInsideEvent();
1167throw SQL.NotAvailableOnContextConnection();
1299throw SQL.BulkLoadInvalidVariantValue();
1308throw SQL.BulkLoadBulkLoadNotAllowDBNull(metadata.column);
1367throw SQL.BulkLoadCannotConvertValue(value.GetType(), mt, ADP.ParameterValueOutOfRange(sqlValue));
1370throw SQL.BulkLoadCannotConvertValue(value.GetType(), mt, e);
1412throw SQL.BulkLoadStringTooLong();
1444throw SQL.BulkLoadCannotConvertValue(value.GetType(), type, null);
1458throw SQL.BulkLoadCannotConvertValue(value.GetType(), type, e);
1470throw SQL.BulkLoadPendingOperation();
1500throw SQL.BulkLoadPendingOperation();
1534throw SQL.BulkLoadPendingOperation();
1565throw SQL.BulkLoadPendingOperation();
1606throw SQL.BulkLoadPendingOperation();
1654throw SQL.BulkLoadPendingOperation();
1686throw SQL.BulkLoadPendingOperation();
1724throw SQL.BulkLoadPendingOperation();
1764AsyncHelper.WaitForCompletion(reconnectTask, BulkCopyTimeout, () => { throw SQL.CR_ReconnectTimeout(); }, rethrowExceptions: false);
1771CreateOrValidateConnection(SQL.WriteToServer);
1904throw (SQL.BulkLoadNonMatchingColumnName(unquotedColumnName, e));
1909throw (SQL.BulkLoadNonMatchingColumnName(unquotedColumnName));
2113throw ADP.OpenConnectionRequired(SQL.WriteToServer, _connection.State);
2575throw SQL.BulkLoadInvalidDestinationTable(_destinationTableName, ex);
2588()=>{return SQL.BulkLoadInvalidDestinationTable(_destinationTableName, SQL.CR_ReconnectTimeout());}, CancellationToken.None);
2603exceptionConverter: (ex) => SQL.BulkLoadInvalidDestinationTable(_destinationTableName, ex));
2608AsyncHelper.WaitForCompletion(reconnectTask, this.BulkCopyTimeout, () => { throw SQL.CR_ReconnectTimeout(); } );
2611throw SQL.BulkLoadInvalidDestinationTable(_destinationTableName, ex); // preserve behavior (throw InvalidOperationException on failure to connect)
2638throw SQL.BulkLoadInvalidDestinationTable(_destinationTableName, ex);
2674source.SetException(SQL.BulkLoadMissingDestinationTable()); //no table to copy
2677throw SQL.BulkLoadMissingDestinationTable();
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCertificateStoreProvider.cs (19)
84throw SQL.NullEncryptedColumnEncryptionKey();
88throw SQL.EmptyEncryptedColumnEncryptionKey();
111throw SQL.InvalidAlgorithmVersionInEncryptedCEK(encryptedColumnEncryptionKey[0], _version[0]);
130throw SQL.InvalidCiphertextLengthInEncryptedCEK(cipherTextLength, keySizeInBytes, masterKeyPath);
138throw SQL.InvalidSignatureInEncryptedCEK(signatureLength, keySizeInBytes, masterKeyPath);
163throw SQL.InvalidCertificateSignature(masterKeyPath);
184throw SQL.NullColumnEncryptionKey();
188throw SQL.EmptyColumnEncryptionKey();
337throw SQL.NullKeyEncryptionAlgorithm(isSystemOp);
342throw SQL.InvalidKeyEncryptionAlgorithm(encryptionAlgorithm, RSAEncryptionAlgorithmWithOAEP, isSystemOp);
355throw SQL.LargeCertificatePathLength(masterKeyPath.Length, Int16.MaxValue, isSystemOp);
376throw SQL.NullCertificatePath(GetValidCertificateLocations(), isSystemOp);
380throw SQL.InvalidCertificatePath(masterKeyPath, GetValidCertificateLocations(), isSystemOp);
405throw SQL.InvalidCertificatePath(keyPath, GetValidCertificateLocations(), isSystemOp);
422throw SQL.InvalidCertificateLocation(certParts[0], keyPath, GetValidCertificateLocations(), isSystemOp);
436throw SQL.InvalidCertificateStore(certParts[certParts.Length - 2], keyPath, _myCertificateStore, isSystemOp);
445throw SQL.EmptyCertificateThumbprint(keyPath, isSystemOp);
478throw SQL.CertificateNotFound(thumbprint, storeName.ToString(), storeLocation.ToString(), isSystemOp);
485throw SQL.CertificateWithNoPrivateKey(masterKeyPath, isSystemOp);
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCngProvider.cs (16)
64throw SQL.NullEncryptedColumnEncryptionKey();
69throw SQL.EmptyEncryptedColumnEncryptionKey();
91throw SQL.InvalidAlgorithmVersionInEncryptedCEK(encryptedColumnEncryptionKey[0], _version[0]);
110throw SQL.InvalidCiphertextLengthInEncryptedCEKCng(cipherTextLength, keySizeInBytes, masterKeyPath);
118throw SQL.InvalidSignatureInEncryptedCEKCng(signatureLength, keySizeInBytes, masterKeyPath);
143throw SQL.InvalidSignature(masterKeyPath);
165throw SQL.NullColumnEncryptionKey();
169throw SQL.EmptyColumnEncryptionKey();
281throw SQL.NullKeyEncryptionAlgorithm(isSystemOp);
286throw SQL.InvalidKeyEncryptionAlgorithm(encryptionAlgorithm, RSAEncryptionAlgorithmWithOAEP, isSystemOp);
301throw SQL.NullCngKeyPath(isSystemOp);
305throw SQL.InvalidCngPath(masterKeyPath, isSystemOp);
402throw SQL.InvalidCngKey(keyPath, cngProviderName, keyIdentifier, isSystemOp);
420throw SQL.InvalidCngPath(keyPath, isSystemOp);
428throw SQL.EmptyCngName(keyPath, isSystemOp);
433throw SQL.EmptyCngKeyId(keyPath, isSystemOp);
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCspProvider.cs (17)
70throw SQL.NullEncryptedColumnEncryptionKey();
75throw SQL.EmptyEncryptedColumnEncryptionKey();
97throw SQL.InvalidAlgorithmVersionInEncryptedCEK(encryptedColumnEncryptionKey[0], _version[0]);
116throw SQL.InvalidCiphertextLengthInEncryptedCEKCsp(cipherTextLength, keySizeInBytes, masterKeyPath);
124throw SQL.InvalidSignatureInEncryptedCEKCsp(signatureLength, keySizeInBytes, masterKeyPath);
149throw SQL.InvalidSignature(masterKeyPath);
171throw SQL.NullColumnEncryptionKey();
175throw SQL.EmptyColumnEncryptionKey();
287throw SQL.NullKeyEncryptionAlgorithm(isSystemOp);
292throw SQL.InvalidKeyEncryptionAlgorithm(encryptionAlgorithm, RSAEncryptionAlgorithmWithOAEP, isSystemOp);
308throw SQL.NullCspKeyPath(isSystemOp);
312throw SQL.InvalidCspPath(masterKeyPath, isSystemOp);
422throw SQL.InvalidCspKeyIdentifier(keyName, keyPath, isSystemOp);
446throw SQL.InvalidCspPath(keyPath, isSystemOp);
454throw SQL.EmptyCspName(keyPath, isSystemOp);
459throw SQL.EmptyCspKeyId(keyPath, isSystemOp);
476throw SQL.InvalidCspName(providerName, keyPath, isSystemOp);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (49)
224throw SQL.MARSUnspportedOnConnection();
456throw SQL.CannotModifyPropertyAsyncOperationInProgress(SQL.Connection);
608throw SQL.CannotModifyPropertyAsyncOperationInProgress(SQL.Transaction);
716throw SQL.NotSupportedCommandType(value);
1373throw SQL.CR_ReconnectionCancelled();
1436throw SQL.CR_ReconnectionCancelled();
1550if (!result) { throw SQL.SynchronousCallMayNotPend(); }
1945throw SQL.NonXmlResult();
3072AsyncHelper.SetTimeoutException(completion, timeout, SQL.CR_ReconnectTimeout, timeoutCTS.Token);
3091AsyncHelper.WaitForCompletion(reconnectTask, timeout, () => { throw SQL.CR_ReconnectTimeout(); });
3121if (!result) { throw SQL.SynchronousCallMayNotPend(); }
3910throw SQL.NoAttestationUrlSpecifiedForEnclaveBasedQuerySpDescribe(this._activeConnection.Parser.EnclaveType);
3930throw SQL.InvalidEncryptionKeyOrdinalEnclaveMetadata(requestedKey, columnEncryptionKeyTable.Count);
3942throw SQL.UnexpectedDescribeParamFormatParameterMetadata ();
4002throw SQL.InvalidEncryptionKeyOrdinalParameterMetadata(columnEncryptionKeyOrdinal, columnEncryptionKeyTable.Count);
4035throw SQL.ParamEncryptionMetadataMissing(rpc.parameters[paramIdx].ParameterName, rpc.GetCommandTextOrRpcName());
4047throw SQL.UnexpectedDescribeParamFormatAttestationInfo (this._activeConnection.Parser.EnclaveType);
4055throw SQL.MultipleRowsReturnedForAttestationInfo();
4072throw SQL.AttestationInfoNotReturnedFromSqlServer(this._activeConnection.Parser.EnclaveType, this._activeConnection.EnclaveAttestationUrl);
4084throw SQL.ProcEncryptionMetadataMissing(_SqlRPCBatchArray[i].rpcName);
4324if (string.IsNullOrWhiteSpace(this._activeConnection.EnclaveAttestationUrl)) throw SQL.NoAttestationUrlSpecifiedForEnclaveBasedQueryGeneratingEnclavePackage(this._activeConnection.Parser.EnclaveType);
4327if (string.IsNullOrWhiteSpace(enclaveType)) throw SQL.EnclaveTypeNullForEnclaveBasedQuery();
4338throw SQL.ExceptionWhenGeneratingEnclavePackage(e);
4358AsyncHelper.SetTimeoutException(completion, timeout, SQL.CR_ReconnectTimeout, timeoutCTS.Token);
4379AsyncHelper.WaitForCompletion(reconnectTask, timeout, () => { throw SQL.CR_ReconnectTimeout(); });
4448throw SQL.NullEnclavePackageForEnclaveBasedQuery(this._activeConnection.Parser.EnclaveType, this._activeConnection.EnclaveAttestationUrl);
4525if (!result) { throw SQL.SynchronousCallMayNotPend(); }
4700if (!result) { throw SQL.SynchronousCallMayNotPend(); }
4816throw SQL.TceNotSupported ();
4898throw SQL.NotificationsRequireYukon();
4903throw SQL.NotAvailableOnContextConnection();
4911throw SQL.PendingBeginXXXExists();
4931throw SQL.OperationCancelled();
4955throw SQL.OperationCancelled();
5168throw SQL.InvalidDataTypeForEncryptedParameter(thisParam.ParameterNameFixed, rec.tdsType, TdsEnums.SQLBIGVARBINARY);
5193throw SQL.ParamDecryptionFailed(thisParam.ParameterNameFixed, null, e);
5772throw SQL.MustSetUdtTypeNameForUdtParams();
5779throw SQL.MustSetTypeNameForParam(mt.TypeName, sqlParam.ParameterNameFixed);
6123throw SQL.BatchedUpdateColumnEncryptionSettingMismatch();
6203throw SQL.NotificationsNotAvailableOnContextConnection();
6273throw SQL.ParameterSizeRestrictionFailure(index);
6279throw SQL.ParameterSizeRestrictionFailure(index);
6287throw SQL.ParameterSizeRestrictionFailure(index);
6294throw SQL.ParameterSizeRestrictionFailure(index);
6301throw SQL.ParameterSizeRestrictionFailure(index);
6316throw SQL.ParameterSizeRestrictionFailure(index);
6324throw SQL.ParameterSizeRestrictionFailure(index);
fx\src\data\System\Data\SqlClient\TdsParser.cs (73)
548throw SQL.InstanceFailure();
882if (!result) { throw SQL.SynchronousCallMayNotPend(); }
891if (!_physicalStateObj.TryProcessHeader()) { throw SQL.SynchronousCallMayNotPend(); }
894throw SQL.ParsingError(ParsingErrorState.CorruptedTdsStream);
900if (!result) { throw SQL.SynchronousCallMayNotPend(); }
905throw SQL.InvalidSQLServerVersionUnknown();
1069throw SQL.ParsingErrorValue(ParsingErrorState.FedAuthRequiredPreLoginResponseInvalidValue, (int)payload[payloadOffset]);
1344throw SQL.MultiSubnetFailoverWithMoreThan64IPs();
1348throw SQL.MultiSubnetFailoverWithInstanceSpecified();
1352throw SQL.MultiSubnetFailoverWithNonTcpProtocol();
1417errorMessage = SQL.GetSNIErrorMessage((int)sniError.sniError);
1875throw SQL.ParsingErrorToken(ParsingErrorState.InvalidTdsTokenReceived, token); // MDAC 82443
2421throw SQL.SynchronousCallMayNotPend();
2903throw SQL.TceNotSupported ();
2910throw SQL.EnclaveComputationsNotSupported ();
2917throw SQL.EnclaveTypeNotReturned ();
2925throw SQL.ParsingErrorLength(ParsingErrorState.SessionStateLengthTooShort, length);
2939throw SQL.ParsingErrorStatus(ParsingErrorState.SessionStateInvalidStatus, status);
3052throw SQL.InvalidTDSVersion();
3056if (increment != TdsEnums.SHILOHSP1_INCREMENT) { throw SQL.InvalidTDSVersion(); }
3060if (increment != TdsEnums.YUKON_INCREMENT) { throw SQL.InvalidTDSVersion(); }
3064if (increment != TdsEnums.KATMAI_INCREMENT) { throw SQL.InvalidTDSVersion(); }
3068if (increment != TdsEnums.DENALI_INCREMENT) { throw SQL.InvalidTDSVersion(); }
3072throw SQL.InvalidTDSVersion();
3140throw SQL.ParsingErrorLength(ParsingErrorState.FedAuthInfoLengthTooShortForCountOfInfoIds, tokenLen);
3147throw SQL.ParsingError(ParsingErrorState.FedAuthInfoFailedToReadCountOfInfoIds);
3167throw SQL.ParsingError(ParsingErrorState.FedAuthInfoFailedToReadTokenStream);
3200throw SQL.ParsingErrorOffset(ParsingErrorState.FedAuthInfoInvalidOffset, unchecked((int)dataOffset));
3210throw SQL.ParsingError(ParsingErrorState.FedAuthInfoFailedToReadData, e);
3214throw SQL.ParsingError(ParsingErrorState.FedAuthInfoDataNotUnicode, e);
3239throw SQL.ParsingErrorLength(ParsingErrorState.FedAuthInfoLengthTooShortForData, tokenLen);
3247throw SQL.ParsingError(ParsingErrorState.FedAuthInfoDoesNotContainStsurlAndSpn);
3588throw SQL.ParsingErrorValue(ParsingErrorState.TceInvalidOrdinalIntoCipherInfoTable, index);
3786throw SQL.SynchronousCallMayNotPend();
3792throw SQL.SynchronousCallMayNotPend();
3802throw SQL.SynchronousCallMayNotPend();
3809throw SQL.SynchronousCallMayNotPend();
3819throw SQL.SynchronousCallMayNotPend();
5041throw SQL.UnsupportedNormalizationVersion(normalizationVersion);
5287throw SQL.UnsupportedDatatypeEncryption(metaType.TypeName);
5358throw SQL.ColumnDecryptionFailed(columnName, null, e);
6174throw SQL.MoneyOverflow(decimalValue.ToString(CultureInfo.InvariantCulture));
6199throw SQL.MoneyOverflow(value.ToString(CultureInfo.InvariantCulture));
6238throw SQL.MoneyOverflow(value.ToString(CultureInfo.InvariantCulture));
6261throw SQL.TimeOverflow(value.ToString());
6275throw SQL.TimeOverflow(value.ToString());
7209throw SQL.InvalidSSPIPacketSize(); // SqlBu 332503
7556if (!result) { throw SQL.SynchronousCallMayNotPend(); }
7603throw SQL.InvalidSSPIPacketSize(); // SqlBu 332503
7938throw SQL.ConnectionLockedForBcpEvent();
8140throw SQL.ParamInvalidForceColumnEncryptionSetting(param.ParameterName, rpcext.GetCommandTextOrRpcName());
8147throw SQL.ParamUnExpectedEncryptionMetadata(param.ParameterName, rpcext.GetCommandTextOrRpcName());
8212throw SQL.PrecisionValueOutOfRange(precision);
8274throw SQL.ParamEncryptionFailed(param.ParameterName, null, e);
8394throw SQL.MustSetUdtTypeNameForUdtParams();
9399SQL.StreamNotSupportOnEncryptedColumn(column);
10074throw SQL.SmallDateTimeOverflow(dt.ToString());
10094throw SQL.UDTUnexpectedResult(value.GetType().AssemblyQualifiedName);
10499throw SQL.OperationCancelled();
10659throw SQL.SmallDateTimeOverflow(MetaType.ToDateTime(dt.days, dt.time, 4).ToString(CultureInfo.InvariantCulture));
10683throw SQL.TimeScaleValueOutOfRange(scale);
10690throw SQL.TimeScaleValueOutOfRange(scale);
10750throw SQL.UnsupportedNormalizationVersion(normalizationVersion);
10846throw SQL.SmallDateTimeOverflow(MetaType.ToDateTime(dt.days, dt.time, 4).ToString(CultureInfo.InvariantCulture));
10891throw SQL.TimeScaleValueOutOfRange(scale);
10897throw SQL.TimeScaleValueOutOfRange(scale);
10903throw SQL.TimeScaleValueOutOfRange(scale);
10908throw SQL.UnsupportedDatatypeEncryption(type.TypeName);
10921throw SQL.UnsupportedNormalizationVersion(normalizationVersion);
11017throw SQL.SmallDateTimeOverflow(dt.ToString());
11058throw SQL.UnsupportedDatatypeEncryption(type.TypeName);
11150if (!result) { throw SQL.SynchronousCallMayNotPend(); }
11318if (!result) { throw SQL.SynchronousCallMayNotPend(); }