Package desmoj.core.report

Examples of desmoj.core.report.ErrorMessage


    try {
      wait();
    } catch (InterruptedException ioEx) {
      // create eror message
      ErrorMessage errmsg = new ErrorMessage(getModel(),
          "Simulation stopped!",
          "Exception thrown by Java VM" + ioEx,
          "Thread conflict assumed.", "Check Java VM.", presentTime());
      // throw it back to Experiment's start routine
      throw (new desmoj.core.exception.DESMOJException(errmsg));
View Full Code Here


    try {
      wait();
    } catch (InterruptedException irqEx) { // must be caught when using
      // wait
      // create eror message
      ErrorMessage errmsg = new ErrorMessage(getModel(),
          "Simulation stopped!",
          "InterruptedException thrown by Java VM : " + irqEx,
          "Thread conflict assumed.", "Check Java VM.", presentTime());
      // throw it back to Experiment's start routine
      throw (new desmoj.core.exception.DESMOJException(errmsg));
View Full Code Here

    // put thread in to a wait for synchronization
    try {
      wait();
    } catch (InterruptedException irqEx) {
      // create eror message
      ErrorMessage errmsg = new ErrorMessage(getModel(),
          "Simulation stopped!", "Exception thrown by Java VM"
              + irqEx, "Thread conflict assumed.",
          "Check Java VM.", presentTime());
      // throw it back to Experiment's start routine
      throw (new desmoj.core.exception.DESMOJException(errmsg));
View Full Code Here

    } catch (SimFinishedException sfEx) {
      ; // nothing done here, sfEx was just used to
        // finish this simthread after end of simulation
    } catch (InterruptException irqEx) {
      throw new SimAbortedException(
          new ErrorMessage(
              simProc.getModel(),
              "The simulation has been aborted due to an unhandled interrupt.",
              "SimProcess: " + simProc.getName() + " Method: void lifeCycle()",
              "The current SimProcess has been interrupted by a call to its interrupt(InterruptException interruptReason) method but this interrupt hasn't been properly handled by catching the given InterruptException.",
              "To properly handle an interrupt triggered by an InterruptException every call to the methods hold(...) and passivate() has to be surrounded with a try-block so that the InterruptException is caught and can be handled in an adjacent catch-block.",
View Full Code Here

TOP

Related Classes of desmoj.core.report.ErrorMessage

Copyright © 2018 www.massapicom. 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.