2 instantiations of SqlException
System.Data (2)
fx\src\data\System\Data\SqlClient\SqlException.cs (2)
171
SqlException exception = new
SqlException
(message.ToString(), errorCollection, innerException, conId);
187
SqlException exception = new
SqlException
(Message, _errors, InnerException, _clientConnectionId);
140 references to SqlException
System.Activities.DurableInstancing (5)
System\Activities\DurableInstancing\SqlCommandAsyncResult.cs (2)
157
catch (
SqlException
exception)
291
catch (
SqlException
exception)
System\Activities\DurableInstancing\TestVersionAndRunAsyncResult.cs (3)
96
while (!(currentException is
SqlException
) && currentException.InnerException != null)
101
SqlException
se = currentException as
SqlException
;
System.Data (107)
fx\src\data\Microsoft\SqlServer\Server\SmiEventSink_Default.cs (4)
80
SqlException
errors = ProcessMessages(true, ignoreNonFatalMessages); // ignore warnings, because there's no place to send them...
87
protected
SqlException
ProcessMessages(bool ignoreWarnings, bool ignoreNonFatalMessages) {
88
SqlException
result = null;
131
result =
SqlException
.CreateException( temp, ServerVersion );
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (2)
1063
if (_resError.GetType()==typeof(SqlClient.
SqlException
))
1064
return ((SqlClient.
SqlException
)_resError).InternalClone();
fx\src\data\System\Data\SqlClient\LocalDBAPI.cs (4)
213
catch (
SqlException
exc)
220
static
SqlException
CreateLocalDBException(string errorMessage, string instance = null, int localDbError = 0, int sniError = 0)
240
SqlException
exc =
SqlException
.CreateException(collection, null);
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (3)
2574
catch (
SqlException
ex) {
2610
catch (
SqlException
ex) {
2637
catch (
SqlException
ex) {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (14)
1147
catch (
SqlException
ex) {
1202
catch (
SqlException
ex) {
1476
catch (
SqlException
e) {
1716
catch (
SqlException
ex) {
1899
catch (
SqlException
e){
2040
catch (
SqlException
e) {
2107
catch (
SqlException
e) {
2240
if (e is
SqlException
) {
2241
SqlException
sqlEx = e as
SqlException
;
4187
catch (
SqlException
ex) {
6172
internal
SqlException
GetErrors(int commandIndex) {
6173
SqlException
result = null;
6183
result =
SqlException
.CreateException(errors, Connection.ServerVersion, Connection.ClientConnectionId);
fx\src\data\System\Data\SqlClient\SqlConnection.cs (3)
1254
catch (
SqlException
e) {
1317
catch (
SqlException
) {
1729
internal void OnError(
SqlException
exception, bool breakConnection, Action<Action> wrapCloseInAction) {
fx\src\data\System\Data\SqlClient\SqlConnectionStringBuilder.cs (1)
1417
catch(
SqlException
e) {
fx\src\data\System\Data\SqlClient\SqlDelegatedTransaction.cs (3)
184
catch (
SqlException
e) {
260
catch (
SqlException
e) {
355
catch (
SqlException
e) {
fx\src\data\System\Data\SqlClient\SqlException.cs (7)
134
static internal
SqlException
CreateException(SqlErrorCollection errorCollection, string serverVersion) {
138
static internal
SqlException
CreateException(SqlErrorCollection errorCollection, string serverVersion, SqlInternalConnectionTds internalConnection, Exception innerException = null) {
140
var
exception = CreateException(errorCollection, serverVersion, connectionId, innerException);
155
static internal
SqlException
CreateException(SqlErrorCollection errorCollection, string serverVersion, Guid conId, Exception innerException = null) {
171
SqlException
exception = new SqlException(message.ToString(), errorCollection, innerException, conId);
186
internal
SqlException
InternalClone() {
187
SqlException
exception = new SqlException(Message, _errors, InnerException, _clientConnectionId);
fx\src\data\System\Data\SqlClient\SqlInfoMessageEvent.cs (2)
13
private
SqlException
exception;
15
internal SqlInfoMessageEventArgs(
SqlException
exception) {
fx\src\data\System\Data\SqlClient\SqlInternalConnection.cs (2)
471
catch (
SqlException
e) {
711
internal void OnError(
SqlException
exception, bool breakConnection, Action<Action> wrapCloseInAction = null) {
fx\src\data\System\Data\SqlClient\SqlInternalConnectionSmi.cs (1)
40
SqlException
exception = ProcessMessages(false, ignoreNonFatalMessages);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (8)
423
catch (
SqlException
sqlex)
505
private bool IsTransientError(
SqlException
exc)
1446
private bool IsDoNotRetryConnectError(
SqlException
exc) {
1597
catch (
SqlException
sqlex) {
1682
private bool AttemptRetryADAuthWithTimeoutError(
SqlException
sqlex, SqlConnectionString connectionOptions, TimeoutTimer timeout) {
1856
catch (
SqlException
sqlex) {
2462
SqlException
exc =
SqlException
.CreateException(sqlErs, "", this);
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (2)
109
catch (
SqlException
ex)
227
if (t.Exception.InnerException is
SqlException
)
fx\src\data\System\Data\SqlClient\SqlSequentialStreamSmi.cs (1)
79
catch (
SqlException
ex)
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (2)
212
if (t.Exception.InnerException is
SqlException
)
327
catch (
SqlException
ex)
fx\src\data\System\Data\SqlClient\SqlUtil.cs (44)
595
return
SqlException
.CreateException(errors, null, internalConnection);
1294
if (e is
SqlException
) {
1295
SqlException
exThrown = (
SqlException
)e;
1305
return
SqlException
.CreateException(sqlErs, "", null, exceptionToInclude);
1461
SqlException
exc =
SqlException
.CreateException(errors, null, internalConnection);
1496
SqlException
exc =
SqlException
.CreateException(errors, null, internalConnection);
1504
SqlException
exc=
SqlException
.CreateException(errors, null, internalConnection);
1512
SqlException
exc =
SqlException
.CreateException(errors, null, internalConnection);
1520
SqlException
exc =
SqlException
.CreateException(errors, null, internalConnection);
1528
SqlException
exc =
SqlException
.CreateException(errors, null, internalConnection);
1536
static internal
SqlException
CR_ReconnectTimeout() {
1539
SqlException
exc =
SqlException
.CreateException(errors, "");
1543
static internal
SqlException
CR_ReconnectionCancelled() {
1546
SqlException
exc =
SqlException
.CreateException(errors, "");
1550
static internal Exception CR_NextAttemptWillExceedQueryTimeout(
SqlException
innerException, Guid connectionId) {
1553
SqlException
exc =
SqlException
.CreateException(errors, "", connectionId, innerException);
1560
SqlException
exc =
SqlException
.CreateException(errors, "", internalConnection);
1564
static internal
SqlException
CR_AllAttemptsFailed(
SqlException
innerException, Guid connectionId) {
1567
SqlException
exc =
SqlException
.CreateException(errors, "", connectionId, innerException);
1571
static internal
SqlException
CR_NoCRAckAtReconnection(SqlInternalConnectionTds internalConnection) {
1574
SqlException
exc =
SqlException
.CreateException(errors, "", internalConnection);
1578
static internal
SqlException
CR_TDSVersionNotPreserved(SqlInternalConnectionTds internalConnection) {
1581
SqlException
exc =
SqlException
.CreateException(errors, "", internalConnection);
1585
static internal
SqlException
CR_UnrecoverableServer(Guid connectionId) {
1588
SqlException
exc =
SqlException
.CreateException(errors, "", connectionId);
1592
static internal
SqlException
CR_UnrecoverableClient(Guid connectionId) {
1595
SqlException
exc =
SqlException
.CreateException(errors, "", connectionId);
fx\src\data\System\Data\SqlClient\TdsParser.cs (4)
1202
SqlException
exc =
SqlException
.CreateException(sqlErs, serverVersion, _connHandler);
1234
SqlException
exception = null;
1274
exception =
SqlException
.CreateException(temp, serverVersion, _connHandler);
System.Data.Entity (2)
System\Data\SqlClient\SqlProviderServices.cs (2)
916
catch (
SqlException
e)
1100
catch (
SqlException
e)
System.Web (24)
Cache\SqlCacheDependency.cs (6)
764
SqlException
sqlExpt = null;
915
sqlExpt = e as
SqlException
;
1552
SqlException
sqlExpt = e as
SqlException
;
1701
SqlException
sqlExpt = e as
SqlException
;
Management\SqlServices.cs (8)
51
SqlException
_sqlException;
54
string sqlFile, string commands,
SqlException
sqlException)
80
_sqlException = (
SqlException
)info.GetValue("_sqlException", typeof(
SqlException
));
115
public
SqlException
Exception {
445
SqlException
sqlExpt = e as
SqlException
;
615
} catch (
SqlException
e) {
Security\SQLMembershipProvider.cs (1)
386
} catch(
SqlException
sqlEx) {
State\sqlstateclientmanager.cs (6)
788
static bool IsInsertPKException(
SqlException
ex, bool ignoreInsertPKException, string id) {
807
static bool IsFatalSqlException(
SqlException
ex) {
829
static bool CanRetry(
SqlException
ex, SqlConnection conn,
893
catch (
SqlException
e) {
930
catch (
SqlException
e) {
1201
catch (
SqlException
e) {
UI\WebControls\SqlDataSourceView.cs (2)
679
System.Data.SqlClient.
SqlException
sqlException = ex as System.Data.SqlClient.
SqlException
;
UI\WebParts\SqlPersonalizationProvider.cs (1)
944
} catch(
SqlException
sqlEx) {
System.Workflow.Runtime (2)
Hosting\SqlWorkflowPersistenceService.cs (1)
1133
catch (
SqlException
se)
Tracking\SqlTrackingWorkflowInstance.cs (1)
824
catch (
SqlException
se)