Ignore:
Timestamp:
12/12/05 09:44:20 (19 years ago)
Author:
remar
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt/src/org/modelica/mdt/internal/omcproxy/OMCProxy.java

    r193 r204  
    416416        }
    417417       
    418         logOMCCall(exp);
    419         retval = omcc.sendExpression(exp);
    420         logOMCReply(retval);
     418        try
     419        {
     420            logOMCCall(exp);
     421            retval = omcc.sendExpression(exp);
     422            logOMCReply(retval);
     423        }
     424        catch(org.omg.CORBA.COMM_FAILURE x)
     425        {
     426            /* Server has died, try restarting it. */
     427            throw new ConnectionException("Couldn't send message to OMC server."
     428                    +" Server not running, or we're not connected to it."
     429                    +" Tried sending: " + exp);
     430        }
    421431       
    422432        return retval;
Note: See TracChangeset for help on using the changeset viewer.