protected void handleLaunchError ( Bureau bureau , Exception error , String cause ) { if ( cause == null && error != null ) { cause = error . getMessage ( ) ; } log . info ( "Bureau failed to launch" , "bureau" , bureau , "cause" , cause ) ; // clean up any agents attached to this bureau for ( AgentObject agent : bureau . agentStates . keySet ( ) ) { agent . getLocal ( AgentData . class ) . launchError = error ; _omgr . destroyObject ( agent . getOid ( ) ) ; } bureau . agentStates . clear ( ) ; _bureaus . remove ( bureau . bureauId ) ; }
Called when something goes wrong with launching a bureau .