Examples of ErrorCode


Examples of com.sogou.qadev.service.cynthia.service.DataAccessSession.ErrorCode

   * @param timerId
   * @return
   */
  public ErrorCode removeTimer(UUID timerId)
  {
    ErrorCode errorCode = ErrorCode.unknownFail;

    Connection conn = null;
    PreparedStatement pstm = null;

    try
View Full Code Here

Examples of de.fhkn.in.uce.stun.attribute.ErrorCode

    @Override
    public Message buildFailureResponse(final STUNErrorCode errorNumber, final String reasonPhrase)
            throws UnsupportedEncodingException {
        return new MessageImpl(STUNMessageClass.FAILURE_RESPONSE, this.messageMethod, this.transactionID)
                .addAttribute(new ErrorCode(errorNumber, reasonPhrase));
    }
View Full Code Here

Examples of github.priyatam.springrest.utils.exception.PolicyInvalidException.ErrorCode

    @RequestMapping(method = RequestMethod.POST, value = "/policy")
    @ResponseBody
    public ResponseEntity<Policy> save(final @RequestBody Policy policy) {

        // Input Sanitization / Validations
        ErrorCode code = ruleHelper.validatePolicy(policy);
        if (code != null) {
            throw new PolicyInvalidException(code);
        }

        logger.debug("Generating a Future Url ...");
View Full Code Here

Examples of net.socialgamer.cah.Constants.ErrorCode

    if (text != null && text.contains("<")) {
      // somebody must be using a hacked client, because this should have been escaped already.
      text = StringEscapeUtils.escapeXml(text);
    }

    final ErrorCode ec = game.playCard(user, cardId, text);
    if (ec != null) {
      return error(ec);
    } else {
      return data;
    }
View Full Code Here

Examples of nexj.core.util.ErrorCode

    */
   protected String getMessage(Throwable t)
   {
      if (t instanceof ErrorCode)
      {
         ErrorCode ec = (ErrorCode)t;

         return m_context.formatString(ec.getErrorCode(), ec.getErrorArgs());
      }
      else
      {
         return ObjUtil.getMessage(t);
      }
View Full Code Here

Examples of org.apache.cxf.hello_world_jms.types.ErrorCode

        badRecord.setReason("BadRecordLitFault");
        if (faultType.equals(BadRecordLitFault.class.getSimpleName())) {
            throw new BadRecordLitFault("TestBadRecordLit", badRecord);
        }
        if (faultType.equals(NoSuchCodeLitFault.class.getSimpleName())) {
            ErrorCode ec = new ErrorCode();
            ec.setMajor((short)1);
            ec.setMinor((short)1);
            NoSuchCodeLit nscl = new NoSuchCodeLit();
            nscl.setCode(ec);
            throw new NoSuchCodeLitFault("TestNoSuchCodeLit", nscl);
        }
       
View Full Code Here

Examples of org.apache.cxf.hello_world_jms.types.ErrorCode

        badRecord.setReason("BadRecordLitFault");
        if (faultType.equals(BadRecordLitFault.class.getSimpleName())) {
            throw new BadRecordLitFault("TestBadRecordLit", badRecord);
        }
        if (faultType.equals(NoSuchCodeLitFault.class.getSimpleName())) {
            ErrorCode ec = new ErrorCode();
            ec.setMajor((short)1);
            ec.setMinor((short)1);
            NoSuchCodeLit nscl = new NoSuchCodeLit();
            nscl.setCode(ec);
            throw new NoSuchCodeLitFault("TestNoSuchCodeLit", nscl);
        }
       
View Full Code Here

Examples of org.apache.helix.messaging.handling.MessageHandler.ErrorCode

    HelixTaskResult taskResult = new HelixTaskResult();

    Exception exception = null;
    ErrorType type = ErrorType.INTERNAL;
    ErrorCode code = ErrorCode.ERROR;

    long start = System.currentTimeMillis();
    logger.info("msg:" + _message.getMsgId() + " handling task begin, at: " + start);
    HelixDataAccessor accessor = _manager.getHelixDataAccessor();
    _statusUpdateUtil.logInfo(_message,
View Full Code Here

Examples of org.apache.helix.messaging.handling.MessageHandler.ErrorCode

  @Override
  public HelixTaskResult call() {
    HelixTaskResult taskResult = null;

    ErrorType type = null;
    ErrorCode code = null;

    long start = System.currentTimeMillis();
    logger.info("handling task: " + getTaskId() + " begin, at: " + start);
    HelixDataAccessor accessor = _manager.getHelixDataAccessor();
    _statusUpdateUtil.logInfo(_message, HelixTask.class, "Message handling task begin execute",
View Full Code Here

Examples of org.apache.hello_world_soap_http.types.ErrorCode

        verifyMAPs();
        if (faultType.equals(BadRecordLitFault.class.getSimpleName())) {
            throw new BadRecordLitFault("TestBadRecordLit", "BadRecordLitFault");
        }
        if (faultType.equals(NoSuchCodeLitFault.class.getSimpleName())) {
            ErrorCode ec = new ErrorCode();
            ec.setMajor((short)1);
            ec.setMinor((short)1);
            NoSuchCodeLit nscl = new NoSuchCodeLit();
            nscl.setCode(ec);
            throw new NoSuchCodeLitFault("TestNoSuchCodeLit", nscl);
        }
    }
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.