Package railo.runtime.exp

Examples of railo.runtime.exp.CasterException


     * @return to Base64 String
     * @throws PageException
     */
    public static String toBase64(Object o,String charset) throws PageException {
        String str=toBase64(o,charset,null);
        if(str==null) throw new CasterException(o,"base 64");
        return str;
    }
View Full Code Here


      if(o instanceof Query) return (Query)o;
      if(o instanceof ObjectWrap) {
            return toQuery(((ObjectWrap)o).getEmbededObject());
        }
        if(o instanceof ResultSet) return new QueryImpl((ResultSet)o,"query", ThreadLocalPageContext.getTimeZone());
        throw new CasterException(o,"query");
    }
View Full Code Here

     * @return
     * @throws PageException
     */
    public static QueryColumn toQueryColumn(Object o) throws PageException {
      if(o instanceof QueryColumn) return (QueryColumn)o;
      throw new CasterException(o,"querycolumn");
    }
View Full Code Here

      if(o instanceof String) {
        o=VariableInterpreter.getVariableAsCollection(pc, (String)o);
        if(o instanceof QueryColumn) return (QueryColumn) o;
      }
     
      throw new CasterException(o,"querycolumn");
    }
View Full Code Here

            return (Query)o;
        }
        else if(o instanceof ObjectWrap) {
            return toQuery(((ObjectWrap)o).getEmbededObject(),duplicate);
        }
        throw new CasterException(o,"query");
    }
View Full Code Here

        }
       
        double dbl = toDoubleValue(o,Double.NaN);
        if(!Double.isNaN(dbl))return TimeSpanImpl.fromDays(dbl);
       
        throw new CasterException(o,"timespan");
    }
View Full Code Here

            Component comp=((Component)o);
            if(comp.instanceOf(type)) return o;
            // neo batch
            throw new ExpressionException("can't cast Component of Type ["+comp.getAbsName()+"] to ["+type+"]");
        }
        throw new CasterException(o,type);
    }
View Full Code Here

          if(!hasChanged) return arr;
          return _arr;
        }
       
      }
        throw new CasterException(o,strType);
    }  
View Full Code Here

        if(o==null)return null;
        else if(o instanceof String && o.toString().length()==0)return null;
        else if(o instanceof Number && ((Number)o).intValue()==0 ) return null;
        else if(o instanceof Boolean && ((Boolean)o).booleanValue()==false ) return null;
        else if(o instanceof ObjectWrap) return toVoid(((ObjectWrap)o).getEmbededObject(null));
    throw new CasterException(o,"void");
    }
View Full Code Here

            return toCollection(((ObjectWrap)o).getEmbededObject());
        }
        else if(Decision.isArray(o)) {
            return toArray(o);
        }
        throw new CasterException(o,"collection");
    }
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.