}
}
catch(Exception e)
{
throw new BadParameterEx("from", from);
}
//--- check until parameter
try
{
if (!until.equals(""))
{
untilDate = new ISODate(until);
until = untilDate.getDateAsString();
}
}
catch(Exception e)
{
throw new BadParameterEx("until", until);
}
//--- check from <= until
if (fromDate != null && untilDate != null)
if (fromDate.timeDifferenceInSeconds(untilDate) > 0)
throw new BadParameterEx("from greater than until", from +">"+ until);
}