Package com.ericsson.otp.stdlib

Examples of com.ericsson.otp.stdlib.OtpContinueException


            filter = new org.apache.lucene.search.ChainedFilter(
                filters, ChainedFilter.AND);
          }
        }
        runMatch(queryString, pageSize, sortFields, filter, from);
        throw new OtpContinueException();
      } catch (InvalidParameterException ipe) {
        ipe.printStackTrace();
        OtpErlangTuple reply = new OtpErlangTuple(
            new OtpErlangObject[] { new OtpErlangAtom("error"),
                new OtpErlangString(ipe.getMessage()) });
        return reply;
      } catch (ClassCastException cce) {
        cce.printStackTrace();
        OtpErlangTuple reply = new OtpErlangTuple(
            new OtpErlangObject[] { new OtpErlangAtom("error"),
                new OtpErlangString(cce.getMessage()) });
        return reply;
      } catch (UnsupportedFieldTypeException ufte) {
        ufte.printStackTrace();
        OtpErlangTuple reply = new OtpErlangTuple(
            new OtpErlangObject[] { new OtpErlangAtom("error"),
                new OtpErlangString(ufte.getMessage()) });
        return reply;
      } catch (UnsupportedEncodingException uee) {
        uee.printStackTrace();
        OtpErlangTuple reply = new OtpErlangTuple(
            new OtpErlangObject[] { new OtpErlangAtom("error"),
                new OtpErlangString(uee.getMessage()) });
        return reply;
      }
    } else if (cmdName.atomValue().equals("continue")) {
      // {continue, Token :: binary(), PageSize :: integer()}
      Object pageToken = ((OtpErlangBinary) cmdTuple.elementAt(1))
          .getObject();
      int pageSize = ((OtpErlangLong) cmdTuple.elementAt(2)).intValue();
      runContinue(pageToken, pageSize, from);
      throw new OtpContinueException();

    } else {
      return new OtpErlangTuple(new OtpErlangObject[] {
          new OtpErlangAtom("error"),
          new OtpErlangAtom("unknown command") });
View Full Code Here

TOP

Related Classes of com.ericsson.otp.stdlib.OtpContinueException

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.