Examples of SimulationException


Examples of cu.repsystestbed.exceptions.SimulationException

  {
    if(msg==null)
    {
      String error = "Cannot send a null message.";
      logger.error(error);
      throw new SimulationException(error);
    }
    //add the message to message queue
    synchronized(this.messages)
    {
      this.messages.put(msg.getMessageId(), msg);
View Full Code Here

Examples of org.destecs.core.simulationengine.exceptions.SimulationException

      if (varTarget != null && elem.value.size() != varSize)
      {
        engineInfo(simulator, elem.name + " expected matrix size: "
            + varSize + " in shape: (" + varTarget.getDimensions()
            + ") but received: " + elem.value.size() + "elements");
        throw new SimulationException(simulator, "Variable "
            + elem.name + " does not have the appropriate size");
      }
    }

  }
View Full Code Here

Examples of org.destecs.core.simulationengine.exceptions.SimulationException

  protected void abort(Simulator source, String reason)
      throws SimulationException
  {
    engineInfo(source, "[Abort] " + reason);
    throw new SimulationException(source, reason);
  }
View Full Code Here

Examples of org.destecs.core.simulationengine.exceptions.SimulationException

      extendedReason = " => " + Integer.valueOf(xmlException.code) + ": "
          + xmlException.getMessage();

    }
    engineInfo(source, "[Abort] " + reason + extendedReason);
    throw new SimulationException(source, reason + extendedReason, throwable);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.