System.Data.SqlClient.SqlConnection.SqlConnection.ErrorHandler C# (CSharp) Method

ErrorHandler() private method

private ErrorHandler ( object sender, Mono.Data.Tds.Protocol.TdsInternalErrorMessageEventArgs e ) : void
sender object
e Mono.Data.Tds.Protocol.TdsInternalErrorMessageEventArgs
return void
		private void ErrorHandler (object sender, TdsInternalErrorMessageEventArgs e)
		{
			try {
				if (!tds.IsConnected)
					Close ();
			} catch {
				try {
					Close ();
				} catch {
				}
			}
			throw new SqlException (e.Class, e.LineNumber, e.Message, e.Number, e.Procedure, e.Server, "Mono SqlClient Data Provider", e.State);
		}