void fireConnectionFatalError ( SQLException e ) { ConnectionEvent evt = null ; // Copy the listener list so the listener can remove itself during this // method call ConnectionEventListener [ ] local = listeners . toArray ( new ConnectionEventListener [ listeners . size ( ) ] ) ; for ( ConnectionEventListener listener : local ) { if ( evt == null ) { evt = createConnectionEvent ( e ) ; } listener . connectionErrorOccurred ( evt ) ; } }
Used to fire a connection error event to all listeners .