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