Examples of OtpStopException


Examples of com.ericsson.otp.stdlib.OtpStopException

            ((OtpErlangBinary) cmdTuple.elementAt(1)).binaryValue());
        del(queryString);
      } else {
        jlog.severe("Received " + cmdTuple.elementAt(1)
            + " instead of a binary in " + cmdTuple);
        throw new OtpStopException();
      }
    } else if (cmdName.equals("add")) {
      // {add, Docs :: [[{atom(), string()}]]}
      try {
        add(this.translator.convert((OtpErlangList) cmdTuple
            .elementAt(1)));
      } catch (UnsupportedFieldTypeException ufte) {
        jlog.severe(ufte.getMessage());
        ufte.printStackTrace();
      }
    } else if (cmdName.equals("stop")) { // {stop}
      jlog.info("Stopping");
      throw new OtpStopException();
    }
  }
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.