Package railo.runtime.exp

Examples of railo.runtime.exp.CasterException


        return new PDFDocument(res,password)
      }
      return new PDFDocument(ResourceUtil.toResourceExisting(pageContext, (String)source),password)
    }
   
    throw new CasterException(source,PdfReader.class);
  }
View Full Code Here


    return sct.removeEL(KeyImpl.init(Caster.toString(key)));
  }

  @Override
  public void resize(int to) throws PageException {
    throw new CasterException(sct,"Array");
  }
View Full Code Here

    return sct.setEL(Caster.toString(key), value);
  }

  @Override
  public void sort(String sortType, String sortOrder) throws PageException {
    throw new CasterException(sct,"Array");
  }
View Full Code Here

  public void sort(String sortType, String sortOrder) throws PageException {
    throw new CasterException(sct,"Array");
  }

  public void sort(Comparator com) throws ExpressionException {
    throw new CasterException(sct,"Array");
  }
View Full Code Here

    return defaultValue;
  }

  public static Excel toExcel(Object obj) throws CasterException {
    if(obj instanceof Excel) return (Excel) obj;
    throw new CasterException(obj,"Excel");
  }
View Full Code Here

  private static double _toDoubleValue(Array array, int i) throws ExpressionException {
    Object obj = array.get(i,null);
    if(obj==null)throw new ExpressionException("there is no element at position ["+i+"] or the element is null");
    double tmp = Caster.toDoubleValue(obj,Double.NaN);
    if(Double.isNaN(tmp))
      throw new CasterException(obj,Double.class);
    return tmp;
  }
View Full Code Here


  public static Object[] toReferenceType(Object obj) throws CasterException {
    Object[] ref = toReferenceType(obj,null);
    if(ref!=null) return ref;
    throw new CasterException(obj,Object[].class);
   
  }
View Full Code Here

    return sct.values();
  }

  @Override
  public Object append(Object o) throws PageException {
    throw new CasterException(sct,"Array");
  }
View Full Code Here

    throw new CasterException(sct,"Array");
  }

  @Override
  public Object appendEL(Object o) {
    throw new PageRuntimeException(new CasterException(sct,"Array"));
  }
View Full Code Here

    return sct.get(ArgumentIntKey.init(key),defaultValue);
  }

  @Override
  public int getDimension() {
    throw new PageRuntimeException(new CasterException(sct,"Array"));
  }
View Full Code Here

TOP

Related Classes of railo.runtime.exp.CasterException

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.