@@ -896,7 +896,7 @@ IBackendMessage ReadMessageWithPrepended(DataRowLoadingMode dataRowLoadingMode =
896896 ReceiveTimeout = UserTimeout ;
897897 return DoReadMessage ( dataRowLoadingMode ) ;
898898 }
899- catch ( NpgsqlException )
899+ catch ( PostgresException )
900900 {
901901 if ( CurrentReader != null )
902902 {
@@ -921,7 +921,7 @@ IBackendMessage ReadMessageWithPrepended(DataRowLoadingMode dataRowLoadingMode =
921921 IBackendMessage DoReadMessage ( DataRowLoadingMode dataRowLoadingMode = DataRowLoadingMode . NonSequential ,
922922 bool isPrependedMessage = false )
923923 {
924- NpgsqlException error = null ;
924+ PostgresException error = null ;
925925
926926 while ( true )
927927 {
@@ -954,7 +954,7 @@ IBackendMessage DoReadMessage(DataRowLoadingMode dataRowLoadingMode = DataRowLoa
954954
955955 // An ErrorResponse is (almost) always followed by a ReadyForQuery. Save the error
956956 // and throw it as an exception when the ReadyForQuery is received (next).
957- error = new NpgsqlException ( buf ) ;
957+ error = new PostgresException ( buf ) ;
958958
959959 if ( State == ConnectorState . Connecting ) {
960960 // During the startup/authentication phase, an ErrorResponse isn't followed by
@@ -1024,7 +1024,7 @@ IBackendMessage ParseServerMessage(ReadBuffer buf, BackendMessageCode code, int
10241024 HandleParameterStatus ( buf . ReadNullTerminatedString ( ) , buf . ReadNullTerminatedString ( ) ) ;
10251025 return null ;
10261026 case BackendMessageCode . NoticeResponse :
1027- FireNotice ( new NpgsqlNotice ( buf ) ) ;
1027+ FireNotice ( new PostgresNotice ( buf ) ) ;
10281028 return null ;
10291029 case BackendMessageCode . NotificationResponse :
10301030 FireNotification ( new NpgsqlNotificationEventArgs ( buf ) ) ;
@@ -1257,7 +1257,7 @@ internal void ClearTransaction()
12571257 /// </summary>
12581258 internal event NotificationEventHandler Notification ;
12591259
1260- void FireNotice ( NpgsqlNotice e )
1260+ void FireNotice ( PostgresNotice e )
12611261 {
12621262 var notice = Notice ;
12631263 if ( notice != null )
@@ -1578,7 +1578,7 @@ internal void EndUserAction()
15781578 {
15791579 Contract . Requires ( CurrentReader == null ) ;
15801580 Contract . Ensures ( ! IsInUserAction ) ;
1581- Contract . EnsuresOnThrow < NpgsqlException > ( ! IsInUserAction ) ;
1581+ Contract . EnsuresOnThrow < PostgresException > ( ! IsInUserAction ) ;
15821582 Contract . EnsuresOnThrow < IOException > ( ! IsInUserAction ) ;
15831583
15841584 if ( ! IsInUserAction )
0 commit comments