private void checkMQLinkExists ( boolean condition , String mqlinkName ) throws SINotPossibleInCurrentConfigurationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkMQLinkExists" , new Object [ ] { new Boolean ( condition ) , mqlinkName } ) ; if ( ! condition ) { SIMPNotPossibleInCurrentConfigurationException e = new SIMPNotPossibleInCurrentConfigurationException ( nls_cwsik . getFormattedMessage ( "DELIVERY_ERROR_SIRC_42" , new Object [ ] { mqlinkName , messageProcessor . getMessagingEngineName ( ) , messageProcessor . getMessagingEngineBus ( ) } , null ) ) ; e . setExceptionInserts ( new String [ ] { mqlinkName , messageProcessor . getMessagingEngineName ( ) , messageProcessor . getMessagingEngineBus ( ) } ) ; e . setExceptionReason ( SIRCConstants . SIRC0042_MQ_LINK_NOT_FOUND_ERROR ) ; SibTr . exception ( tc , e ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "checkMQLinkExists" , e ) ; throw e ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "checkMQLinkExists" ) ; }
Asserts that an MQLink exists . Throws out the appropriate exception if the condition has failed .