Package org.wso2.caching

Examples of org.wso2.caching.CachingException


    private static void handleException(String message, Throwable e) throws CachingException {
        if (log.isDebugEnabled()) {
            log.debug(message, e);
        }
        throw new CachingException(message, e);
    }
View Full Code Here


    private static void handleException(String message, Throwable cause) throws CachingException {

        if (log.isDebugEnabled()) {
            log.debug(message, cause);
        }
        throw new CachingException(message, cause);
    }
View Full Code Here

    private static void handleException(String message) throws CachingException {

        if (log.isDebugEnabled()) {
            log.debug(message);
        }
        throw new CachingException(message);
    }
View Full Code Here

        super(size);
    }

    public synchronized void write(int b) {
        if (count+1 > buf.length) {
            throw new CachingException("Fixed size of internal byte array exceeded");
        }
        super.write(b);
    }
View Full Code Here

        super.write(b);
    }

    public synchronized void write(byte b[], int off, int len) {
        if (count+len > buf.length) {
            throw new CachingException("Fixed size of internal byte array exceeded");
        }
        super.write(b, off, len);
    }
View Full Code Here

     */
    protected static final Log log = LogFactory.getLog(CachingHandler.class);

    protected void handleException(String message) throws AxisFault {
        log.error(message);
        throw new AxisFault(message, new CachingException(message));
    }
View Full Code Here

            getDigest(comparingAttribute, digestAlgorithm));
    }

    private void handleException(String message, Throwable cause) throws CachingException {
        log.debug(message, cause);
        throw new CachingException(message, cause);
    }
View Full Code Here

     * @return The end line number, or -1 if could not be determined
     */
    public int getEndLineNumber() {
      int ret=-1;
     
      ActivityInterface parent=getParent();
     
      if (parent != null) {
        int index=parent.getSubActivities().indexOf(this);
       
        if (index != -1) {
          if (index < (parent.getSubActivities().size()-1)) {
            ActivityInterface other=parent.getSubActivities().get(index+1);
           
            ret = other.getStartLineNumber()-1;
          } else {
            ret = parent.getEndLineNumber();
          }
        }
      }
View Full Code Here

     *
     * @param lineNumber The line number
     * @return The activity, or null if not found
     */
    public ActivityInterface getActivityAtLineNumber(int lineNumber) {
      ActivityInterface ret=null;
     
      int endline=getEndLineNumber();
     
      if (getStartLineNumber() <= lineNumber && (endline == -1 || endline >= lineNumber)) {
       
View Full Code Here

            int width = 0;
            int height = 0;
            dimensions = new SVGDimension(width, height);

            SVGDimension subActivityDim = null;
            ActivityInterface activity = null;
            Iterator<org.wso2.carbon.bpel.ui.bpel2svg.ActivityInterface> itr = getSubActivities().iterator();
            while (itr.hasNext()) {
                activity = itr.next();
                subActivityDim = activity.getDimensions();
                if (subActivityDim.getWidth() > width) {
                    width += subActivityDim.getWidth();
                }
                height += subActivityDim.getHeight();
            }
View Full Code Here

TOP

Related Classes of org.wso2.caching.CachingException

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.