Package com.iisigroup.cap.exception

Examples of com.iisigroup.cap.exception.CapException


        } else if (val instanceof Date || val instanceof Calendar) {
          val = new ADDateFormatter().reformat(val);
        }
        row.add(String.valueOf(val));
      } catch (Exception e) {
        throw new CapException(e.getMessage(), e, getClass());
      }
    }
    return row.toString();
  }
View Full Code Here


        } else if (val instanceof Date || val instanceof Calendar) {
          val = new ADDateFormatter().reformat(val);
        }
        json.element(str, val);
      } catch (Exception e) {
        throw new CapException(e.getMessage(), e, getClass());
      }
    }
    return json;
  }
View Full Code Here

   * @see com.iisi.cap.hg.service.IHGService#setProperties(java.util.Map)
   */
  @Override
  public void setProperties(Map<String, Object> property){
    if (property == null) {
      throw new CapException("http property error", getClass());
    }
    if (this.properties == null) {
      this.properties = (Map<String, Object>) property;
    } else {
      this.properties.putAll((Map<String, Object>) property);
View Full Code Here

  public String getReceiveStringData() throws CapException {
    try {
      return new String(responseData, defaultEncode);
    } catch (UnsupportedEncodingException e) {
      throw new CapException(e, getClass());
    }
  }
View Full Code Here

   * @see com.iisi.cap.hg.service.IHGService#execute()
   */
  @Override
  public void execute() throws Exception {
    if (!ConnStatusEnum.INIT.equals(status)) {
      throw new CapException("init error", getClass());
    }
    setStatus(ConnStatusEnum.RUNNING);
    if (isAsync) {
      new Async().start();
    } else {
View Full Code Here

      } else if (this.sendData instanceof String
          && !CapString.isEmpty((String) this.sendData)) {
        setRequestBody((String) this.sendData);
      }
    } catch (UnsupportedEncodingException e) {
      throw new CapException(e, getClass());
    }
    httpClient = new DefaultHttpClient();
    String retryCount = getProperty(Constants.HTTP_RETRY_COUNT);
    if (retryCount != null) {
      final int count = Integer.valueOf(retryCount);
View Full Code Here

          String.valueOf(fe.getMaxUploadSize()), "1048576", 2) };
      me.setMessageKey(fileSizeLimitErrorCode);
      me.setExtraInformation(extra);
      throw me;
    } catch (MultipartException e) {
      throw new CapException(e, getClass());
    }

  }// ;
View Full Code Here

      iTextRenderer.layout();
      iTextRenderer.createPDF(out);

    } catch (Exception e) {
      if (e.getCause() != null) {
        throw new CapException(e.getCause(), e.getClass());
      } else {
        throw new CapException(e, e.getClass());
      }
    } finally {
      if (templateOut != null) {
        try {
          templateOut.close();
View Full Code Here

TOP

Related Classes of com.iisigroup.cap.exception.CapException

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.